got et2_htmlarea/TinyMCE working in edit resources

This commit is contained in:
Ralf Becker 2021-06-10 15:53:31 +02:00
parent 9ea598070e
commit e4ac5b2268
2 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -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,