destroy active editor when component is removed
This commit is contained in:
@@ -70,11 +70,15 @@ export class UmbInputTinyMceElement extends FormControlMixin(UmbLitElement) {
|
||||
|
||||
async connectedCallback() {
|
||||
super.connectedCallback();
|
||||
|
||||
await this.#loadPlugins();
|
||||
this.#setTinyConfig();
|
||||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
super.disconnectedCallback();
|
||||
tinymce.default.activeEditor?.destroy();
|
||||
}
|
||||
|
||||
/**
|
||||
* Load all custom plugins - need to split loading and instantiating as these
|
||||
* need the editor instance as a ctor argument. If we load them in the editor
|
||||
|
||||
Reference in New Issue
Block a user