]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/markdown-editor.js
Modify Chinese language pack
[bookstack] / resources / js / components / markdown-editor.js
index c89a7ad8be87c41673c5e998bdef200f8bbe8f19..de256a8466a727add893f5370167f3db4ef34320 100644 (file)
@@ -30,6 +30,12 @@ class MarkdownEditor {
             this.displayDoc = this.display.contentDocument;
             this.init();
         });
+
+        window.$events.emitPublic(elem, 'editor-markdown::setup', {
+            markdownIt: this.markdown,
+            displayEl: this.display,
+            codeMirrorInstance: this.cm,
+        });
     }
 
     init() {