mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-10 13:43:38 +08:00
Lexical: Added tracked container, added fullscreen action
Changed how the editor is loaded in, so it now creates its own DOM, and content is passed via creation function, to be better self-contained.
This commit is contained in:
@ -4,10 +4,12 @@ export class WysiwygEditor extends Component {
|
||||
|
||||
setup() {
|
||||
this.elem = this.$el;
|
||||
this.editArea = this.$refs.editArea;
|
||||
this.editContainer = this.$refs.editContainer;
|
||||
this.editContent = this.$refs.editContent;
|
||||
|
||||
window.importVersioned('wysiwyg').then(wysiwyg => {
|
||||
wysiwyg.createPageEditorInstance(this.editArea);
|
||||
const editorContent = this.editContent.textContent;
|
||||
wysiwyg.createPageEditorInstance(this.editContainer, editorContent);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user