mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
fix error (function not defined)
This commit is contained in:
parent
a1d7317ccd
commit
36f955bfbc
@ -179,6 +179,9 @@ define([
|
||||
|
||||
|
||||
var isSmallScreen = () => window.innerWidth <= 600;
|
||||
const showEditor = Util.once(() => {
|
||||
$('#cp-app-code-editor').css('display', '');
|
||||
});
|
||||
var mkPreviewPane = function (editor, CodeMirror, framework, isPresentMode) {
|
||||
var $previewContainer = $('#cp-app-code-preview');
|
||||
var $preview = $('#cp-app-code-preview-content');
|
||||
@ -345,7 +348,6 @@ define([
|
||||
$codeMirrorContainer.addClass('cp-app-code-fullpage');
|
||||
};
|
||||
|
||||
|
||||
framework.onReady(function () {
|
||||
showEditor();
|
||||
handleResize();
|
||||
@ -536,9 +538,6 @@ define([
|
||||
CodeMirror.configureTheme(common);
|
||||
}
|
||||
|
||||
const showEditor = Util.once(() => {
|
||||
$('#cp-app-code-editor').css('display', '');
|
||||
});
|
||||
|
||||
framework.onContentUpdate(function (newContent) {
|
||||
showEditor();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user