提交 c8b9289c 编写于 作者: 蔡祥熠

Merge branch 'cherry-pick-e9321042' into 'wrdp'

Merge branch 'fix/CMS.htmleditor' into 'release'

See merge request o2oa/o2oa!2852
......@@ -3,6 +3,25 @@ MWF.xDesktop.requireApp("process.FormDesigner", "Module.Htmleditor", null, false
MWF.xApplication.cms.FormDesigner.Module.Htmleditor = MWF.CMSFCHtmleditor = new Class({
Extends: MWF.FCHtmleditor,
Implements : [MWF.CMSFCMI],
_initModule: function(){
this.node.empty();
var config = Object.clone(this.json.editorProperties);
if (this.json.config){
if (this.json.config.code){
MWF.require("MWF.xScript.CMSMacro", null, false);
var obj = MWF.CMSMacro.exec(this.json.config.code, this);
Object.each(obj, function(v, k){
config[k] = v;
});
}
}
this.loadCkeditor(config);
this._setNodeProperty();
if (!this.form.isSubform) this._createIconAction() ;
this._setNodeEvent();
},
loadCkeditor: function(config){
COMMON.AjaxModule.load("ckeditor", function(){
CKEDITOR.disableAutoInline = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册