|
|
|
@ -27,6 +27,18 @@ define([
|
|
|
|
|
|
|
|
|
|
var toolbar;
|
|
|
|
|
var editor;
|
|
|
|
|
|
|
|
|
|
var secret = Cryptpad.getSecrets();
|
|
|
|
|
var readOnly = secret.keys && !secret.keys.editKeyStr;
|
|
|
|
|
if (!secret.keys) {
|
|
|
|
|
secret.keys = secret.key;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var onConnectError = function () {
|
|
|
|
|
Cryptpad.errorLoadingScreen(Messages.websocketError);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var andThen = function (CMeditor) {
|
|
|
|
|
var $iframe = $('#pad-iframe').contents();
|
|
|
|
|
var $previewContainer = $iframe.find('#previewContainer');
|
|
|
|
|
var $preview = $iframe.find('#preview');
|
|
|
|
@ -41,17 +53,6 @@ define([
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var secret = Cryptpad.getSecrets();
|
|
|
|
|
var readOnly = secret.keys && !secret.keys.editKeyStr;
|
|
|
|
|
if (!secret.keys) {
|
|
|
|
|
secret.keys = secret.key;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var onConnectError = function () {
|
|
|
|
|
Cryptpad.errorLoadingScreen(Messages.websocketError);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var andThen = function (CMeditor) {
|
|
|
|
|
var CodeMirror = Cryptpad.createCodemirror(CMeditor, ifrw, Cryptpad);
|
|
|
|
|
$iframe.find('.CodeMirror').addClass('fullPage');
|
|
|
|
|
editor = CodeMirror.editor;
|
|
|
|
|