1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-06-14 12:02:31 +03:00

Lexical: Linked up saving logic of editor via interface

This commit is contained in:
Dan Brown
2024-07-04 13:09:53 +01:00
parent a8f1160743
commit 04c7e680fd
5 changed files with 52 additions and 15 deletions

View 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();
}