Skip to content

Commit

Permalink
Fix preview mode
Browse files Browse the repository at this point in the history
  • Loading branch information
salmenf committed Nov 18, 2024
1 parent 016b880 commit 66f87d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions @webwriter/core/view/editor/prosemirroreditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ export class ProsemirrorEditor extends LitElement implements IProsemirrorEditor
}

async initialize() {
if(this.url) {
return this.initializePreviewFrame()
}
await this.initializeIFrame()
this.view?.destroy()
this.view = new EditorView({mount: this.body}, this.directProps)
Expand Down

0 comments on commit 66f87d1

Please sign in to comment.