]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/markdown-editor.js
Allow a user to disable peer check when using TLS/STARTTLS
[bookstack] / resources / js / components / markdown-editor.js
index 4c3de91f68cafff30c947edb4085a4898109cf9d..5cd92cae2bf1b7c556b2f947d5b0f2f360be3ba6 100644 (file)
@@ -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();
+    }
+
 }