X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/9dd69b04b8bcb32abe9db60627a52690629bcb52..refs/pull/3593/head:/resources/js/wysiwyg/plugin-codeeditor.js diff --git a/resources/js/wysiwyg/plugin-codeeditor.js b/resources/js/wysiwyg/plugin-codeeditor.js index 4123fb783..db4490215 100644 --- a/resources/js/wysiwyg/plugin-codeeditor.js +++ b/resources/js/wysiwyg/plugin-codeeditor.js @@ -110,7 +110,6 @@ function defineCodeBlockCustomElement(editor) { const container = this.shadowRoot.querySelector('.CodeMirrorContainer'); const renderCodeMirror = (Code) => { - console.log({content}); this.cm = Code.wysiwygView(container, content, this.getLanguage()); Code.updateLayout(this.cm); setTimeout(() => { @@ -186,7 +185,7 @@ function register(editor, url) { editor.on('PreInit', () => { editor.parser.addNodeFilter('pre', function(elms) { for (const el of elms) { - const wrapper = new tinymce.html.Node.create('code-block', { + const wrapper = tinymce.html.Node.create('code-block', { contenteditable: 'false', });