diff --git a/api/js/etemplate/et2_widget_htmlarea.js b/api/js/etemplate/et2_widget_htmlarea.js index 48d6ac813e..9d797c24af 100644 --- a/api/js/etemplate/et2_widget_htmlarea.js +++ b/api/js/etemplate/et2_widget_htmlarea.js @@ -19,7 +19,7 @@ import { ClassWithAttributes } from "./et2_core_inheritance"; import { et2_register_widget, et2_createWidget } from "./et2_core_widget"; import { et2_no_init } from "./et2_core_common"; import { egw } from "../jsapi/egw_global"; -import { tinymce } from "../../../vendor/tinymce/tinymce/tinymce.min.js"; +import "../../../vendor/tinymce/tinymce/tinymce.min.js"; import { etemplate2 } from "./etemplate2"; /** * @augments et2_inputWidget @@ -70,6 +70,7 @@ export class et2_htmlarea extends et2_editableWidget { } // default settings for initialization let settings = { + base_url: egw.webserverUrl + '/vendor/tinymce/tinymce', target: this.htmlNode[0], body_id: this.dom_id + '_htmlarea', menubar: false, diff --git a/api/js/etemplate/et2_widget_htmlarea.ts b/api/js/etemplate/et2_widget_htmlarea.ts index 48dd58342a..67a05b12f3 100644 --- a/api/js/etemplate/et2_widget_htmlarea.ts +++ b/api/js/etemplate/et2_widget_htmlarea.ts @@ -23,7 +23,7 @@ import {et2_IResizeable} from "./et2_core_interfaces"; import {et2_no_init} from "./et2_core_common"; import {egw} from "../jsapi/egw_global"; import {et2_vfsSelect} from "./et2_widget_vfs"; -import {tinymce} from "../../../vendor/tinymce/tinymce/tinymce.min.js"; +import "../../../vendor/tinymce/tinymce/tinymce.min.js"; import {etemplate2} from "./etemplate2"; /** @@ -221,6 +221,7 @@ export class et2_htmlarea extends et2_editableWidget implements et2_IResizeable } // default settings for initialization let settings = { + base_url: egw.webserverUrl + '/vendor/tinymce/tinymce', target: this.htmlNode[0], body_id: this.dom_id + '_htmlarea', menubar: false,