Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/rootPages/Designer/editors/views/ABViewText.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ export default function (AB) {
// in our editor, we provide accessLv = 2
}

async viewLoad(view) {
await this.AB.custom["tinymce-editor"].init();
super.viewLoad(view);
}

onChange() {
const ids = this.ids;
const baseView = this.view;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default function (AB) {
* our interface with the details for this View.
* @param {ABView} view current view instance.
*/
viewLoad(view) {
async viewLoad(view) {
// remove the current Editor if it exists.
this.currentEditor?.detatch?.();

Expand Down Expand Up @@ -233,7 +233,7 @@ export default function (AB) {
}

editorComponent = new newEditor(view); // view.editorComponent(this.AB._App, "preview");
editorComponent.viewLoad(view);
await editorComponent.viewLoad(view);
$$(ids.editAreaContainer).define({ width: 0 });
$$(ids.editArea).define({ height: 0 });
webix.html.removeCss(
Expand Down
Loading