Allow tabbing responsive editor when not on mobile.

fixes #3095
- Add `click` event to floatingheader
This commit is contained in:
Fabian Becker 2014-06-25 12:30:57 +00:00
parent f5e05c8d9f
commit 37af382771

View File

@ -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();