|
|
@ -1,5 +1,9 @@
|
|
|
|
define([
|
|
|
|
define([
|
|
|
|
'jquery',
|
|
|
|
'jquery',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'cm/lib/codemirror',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
|
|
|
|
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
|
|
|
|
'less!/customize/src/less/toolbar.less',
|
|
|
|
'less!/customize/src/less/toolbar.less',
|
|
|
|
'less!/customize/src/less/cryptpad.less',
|
|
|
|
'less!/customize/src/less/cryptpad.less',
|
|
|
@ -9,6 +13,29 @@ define([
|
|
|
|
'css!cm/addon/dialog/dialog.css',
|
|
|
|
'css!cm/addon/dialog/dialog.css',
|
|
|
|
'css!cm/addon/fold/foldgutter.css',
|
|
|
|
'css!cm/addon/fold/foldgutter.css',
|
|
|
|
|
|
|
|
|
|
|
|
], function ($) {
|
|
|
|
'cm/mode/markdown/markdown',
|
|
|
|
|
|
|
|
'cm/addon/mode/loadmode',
|
|
|
|
|
|
|
|
'cm/mode/meta',
|
|
|
|
|
|
|
|
'cm/addon/mode/overlay',
|
|
|
|
|
|
|
|
'cm/addon/mode/multiplex',
|
|
|
|
|
|
|
|
'cm/addon/mode/simple',
|
|
|
|
|
|
|
|
'cm/addon/edit/closebrackets',
|
|
|
|
|
|
|
|
'cm/addon/edit/matchbrackets',
|
|
|
|
|
|
|
|
'cm/addon/edit/trailingspace',
|
|
|
|
|
|
|
|
'cm/addon/selection/active-line',
|
|
|
|
|
|
|
|
'cm/addon/search/search',
|
|
|
|
|
|
|
|
'cm/addon/search/match-highlighter',
|
|
|
|
|
|
|
|
'cm/addon/search/searchcursor',
|
|
|
|
|
|
|
|
'cm/addon/dialog/dialog',
|
|
|
|
|
|
|
|
'cm/addon/fold/foldcode',
|
|
|
|
|
|
|
|
'cm/addon/fold/foldgutter',
|
|
|
|
|
|
|
|
'cm/addon/fold/brace-fold',
|
|
|
|
|
|
|
|
'cm/addon/fold/xml-fold',
|
|
|
|
|
|
|
|
'cm/addon/fold/markdown-fold',
|
|
|
|
|
|
|
|
'cm/addon/fold/comment-fold',
|
|
|
|
|
|
|
|
'cm/addon/display/placeholder',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
], function ($, CMeditor) {
|
|
|
|
|
|
|
|
window.CodeMirror = CMeditor;
|
|
|
|
$('.loading-hidden').removeClass('loading-hidden');
|
|
|
|
$('.loading-hidden').removeClass('loading-hidden');
|
|
|
|
});
|
|
|
|
});
|
|
|
|