mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-01 23:37:43 +03:00
Allow tabbing responsive editor when not on mobile.
fixes #3095 - Add `click` event to floatingheader
This commit is contained in:
parent
f5e05c8d9f
commit
37af382771
@ -44,6 +44,12 @@ var Codemirror = Ember.TextArea.extend(MarkerManager, {
|
||||
afterRenderEvent: function () {
|
||||
var initMarkers = _.bind(this.initMarkers, this);
|
||||
|
||||
// Allow tabbing behaviour when viewing on small screen (not mobile)
|
||||
$('.floatingheader').on('click', function () {
|
||||
$('.entry-markdown').toggleClass('active');
|
||||
$('.entry-preview').toggleClass('active');
|
||||
});
|
||||
|
||||
// replaces CodeMirror with TouchEditor only if we're on mobile
|
||||
mobileCodeMirror.createIfMobile();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user