0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-17 22:02:05 +00:00

Added editor instance event hooks

As per 
This commit is contained in:
Dan Brown 2019-10-16 18:01:35 +01:00
parent b24279cc12
commit 76bd0fdfa6
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
4 changed files with 47 additions and 8 deletions
resources/js/components

View 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() {