X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/31c28be57a53bc543e34bdf113ecd64e8ee11ed1..refs/pull/4126/head:/resources/js/components/markdown-editor.js diff --git a/resources/js/components/markdown-editor.js b/resources/js/components/markdown-editor.js index 4c3de91f6..5cd92cae2 100644 --- a/resources/js/components/markdown-editor.js +++ b/resources/js/components/markdown-editor.js @@ -137,4 +137,13 @@ export class MarkdownEditor extends Component { return drawioAttrEl.getAttribute('drawio-url') || ''; } + /** + * Get the content of this editor. + * Used by the parent page editor component. + * @return {{html: String, markdown: String}} + */ + getContent() { + return this.editor.actions.getContent(); + } + }