mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 18:52:14 +03:00
Merge pull request #3098 from halfdan/3095-non-mobile-tabbing
Allow tabbing responsive editor when not on mobile.
This commit is contained in:
commit
df8e7263e1
@ -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