]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/markdown-editor.js
Adapt tests with displayName array
[bookstack] / resources / js / components / markdown-editor.js
index cd928de9f16e964dc7e02642b5d7324a8393fd26..ad5bcf09030184532a337d37de258f943ee333d1 100644 (file)
@@ -133,9 +133,9 @@ export class MarkdownEditor extends Component {
     /**
      * Get the content of this editor.
      * Used by the parent page editor component.
-     * @return {{html: String, markdown: String}}
+     * @return {Promise<{html: String, markdown: String}>}
      */
-    getContent() {
+    async getContent() {
         return this.editor.actions.getContent();
     }