mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Allow tabbing responsive editor when not on mobile.
fixes #3095 - Add `click` event to floatingheader
This commit is contained in:
parent
4bc166e252
commit
b2662bbdff
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue