Merge pull request #3098 from halfdan/3095-non-mobile-tabbing

Allow tabbing responsive editor when not on mobile.
This commit is contained in:
Hannah Wolfe 2014-06-25 15:33:23 +01:00
commit df8e7263e1

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