]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/index.ts
ZIP Imports: Added API examples, finished testing
[bookstack] / resources / js / wysiwyg / index.ts
index b9770219de9b103ee53a3a12b676ef03797926a2..f572f9de5ec9da58fc890b93b8efced42de8ab7d 100644 (file)
@@ -144,8 +144,8 @@ export class SimpleWysiwygEditorInterface {
     }
 
     remove() {
-        this.context.editorDOM.remove();
         this.context.manager.teardown();
+        this.context.containerDOM.remove();
         if (this.editorListenerTeardown) {
             this.editorListenerTeardown();
         }