fix: combine two onInit events

This commit is contained in:
Jacob Overgaard
2024-06-03 14:11:23 +02:00
parent 9ae442dccc
commit f0491384b9

View File

@@ -330,13 +330,14 @@ export class UmbInputTinyMceElement extends UUIFormControlMixin(UmbLitElement, '
}
});
});
editor.on('init', () => editor.setContent(this.value?.toString() ?? ''));
}
#onInit(editor: Editor) {
//enable browser based spell checking
editor.getBody().setAttribute('spellcheck', 'true');
uriAttributeSanitizer(editor);
editor.setContent(this.value?.toString() ?? '');
}
#onChange(value: string) {