From b5b84f540e02a826aa4eb0d5724aa825df1bbb54 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 20 Sep 2017 12:02:46 +0200 Subject: [PATCH] fix preview mode class --- www/code/inner.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/code/inner.js b/www/code/inner.js index 53d852ebd..6da2b00aa 100644 --- a/www/code/inner.js +++ b/www/code/inner.js @@ -238,7 +238,7 @@ define([ if (data !== false) { $previewContainer.show(); APP.$previewButton.addClass('active'); - $codeMirror.removeClass('fullPage'); + $codeMirror.removeClass('cp-app-code-fullpage'); } }); return; @@ -246,7 +246,7 @@ define([ APP.$previewButton.hide(); $previewContainer.hide(); APP.$previewButton.removeClass('active'); - $codeMirror.addClass('fullPage'); + $codeMirror.addClass('cp-app-code-fullpage'); }; config.onInit = function (info) { @@ -615,7 +615,7 @@ define([ SFCommon.create(waitFor(function (c) { APP.common = common = c; })); }).nThen(function (/*waitFor*/) { CodeMirror = common.initCodeMirrorApp(null, CM); - $('.CodeMirror').addClass('fullPage'); + $('.CodeMirror').addClass('cp-app-code-fullpage'); editor = CodeMirror.editor; Cryptpad.onError(function (info) { if (info && info.type === "store") {