mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-17 22:02:05 +00:00
parent
b24279cc12
commit
76bd0fdfa6
4 changed files with 47 additions and 8 deletions
resources/js/components
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue