clean up editor value

This commit is contained in:
Niels Lyngsø
2024-05-28 01:08:22 +02:00
parent 0e5e2e9bb3
commit 9df7492b2e
2 changed files with 35 additions and 2 deletions

View File

@@ -81,6 +81,10 @@ export class UmbInputTinyMceElement extends UUIFormControlMixin(UmbLitElement, '
@query('.editor', true)
private _editorElement?: HTMLElement;
getEditor() {
return this.#editorRef;
}
protected async firstUpdated(): Promise<void> {
await Promise.all([...(await this.#loadPlugins())]);
await this.#setTinyConfig();