diff --git a/www/slide/inner.js b/www/slide/inner.js index 2d542d4f2..6e12e4538 100644 --- a/www/slide/inner.js +++ b/www/slide/inner.js @@ -3,6 +3,10 @@ define([ 'less!/customize/src/less/toolbar.less', 'less!/customize/src/less/cryptpad.less', 'less!/slide/slide.less', + 'css!cm/lib/codemirror.css', + 'css!cm/addon/dialog/dialog.css', + 'css!cm/addon/fold/foldgutter.css', + ], function ($) { $('.loading-hidden').removeClass('loading-hidden'); }); diff --git a/www/slide/main.js b/www/slide/main.js index 4df790e9a..e7fea2ca0 100644 --- a/www/slide/main.js +++ b/www/slide/main.js @@ -53,7 +53,7 @@ define([ var andThen = function () { var $iframe = $('#pad-iframe').contents(); var $contentContainer = $iframe.find('#editorContainer'); - var CodeMirror = Cryptpad.createCodemirror(ifrw, Cryptpad, 'slide'); + var CodeMirror = Cryptpad.createCodemirror(ifrw, Cryptpad, 'markdown'); editor = CodeMirror.editor; var $bar = $('#pad-iframe')[0].contentWindow.$('#cme_toolbox');