Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fuyue82
o2oa
提交
c8590fbf
o2oa
项目概览
fuyue82
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c8590fbf
编写于
10月 12, 2021
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
内容管理加入tiny
上级
60ee1b36
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
166 addition
and
1 deletion
+166
-1
o2web/source/x_component_cms_FormDesigner/$Main/bottom/icon/tinymceeditor.png
...nent_cms_FormDesigner/$Main/bottom/icon/tinymceeditor.png
+0
-0
o2web/source/x_component_cms_FormDesigner/$Main/bottom/tools.json
...urce/x_component_cms_FormDesigner/$Main/bottom/tools.json
+5
-0
o2web/source/x_component_cms_FormDesigner/$Main/default/icon/tinymceeditor.png
...ent_cms_FormDesigner/$Main/default/icon/tinymceeditor.png
+0
-0
o2web/source/x_component_cms_FormDesigner/$Main/default/tools.json
...rce/x_component_cms_FormDesigner/$Main/default/tools.json
+5
-0
o2web/source/x_component_cms_FormDesigner/Module/Form.js
o2web/source/x_component_cms_FormDesigner/Module/Form.js
+1
-1
o2web/source/x_component_cms_FormDesigner/Module/Package.js
o2web/source/x_component_cms_FormDesigner/Module/Package.js
+1
-0
o2web/source/x_component_cms_FormDesigner/Module/TinyMCEEditor.js
...urce/x_component_cms_FormDesigner/Module/TinyMCEEditor.js
+53
-0
o2web/source/x_component_cms_Xform/TinyMCEEditor.js
o2web/source/x_component_cms_Xform/TinyMCEEditor.js
+101
-0
未找到文件。
o2web/source/x_component_cms_FormDesigner/$Main/bottom/icon/tinymceeditor.png
0 → 100644
浏览文件 @
c8590fbf
3.5 KB
o2web/source/x_component_cms_FormDesigner/$Main/bottom/tools.json
浏览文件 @
c8590fbf
...
...
@@ -190,6 +190,11 @@
"text"
:
MWF.xApplication.cms.FormDesigner.LP.modules.htmledit
,
"className"
:
"Htmleditor"
},
"tinymceEditor"
:
{
"icon"
:
"tinymceeditor.png"
,
"text"
:
MWF.xApplication.cms.FormDesigner.LP.modules.tinymceEditor
,
"className"
:
"TinyMCEEditor"
},
"log"
:
{
"icon"
:
"log.png"
,
"text"
:
MWF.xApplication.cms.FormDesigner.LP.modules.log
,
...
...
o2web/source/x_component_cms_FormDesigner/$Main/default/icon/tinymceeditor.png
0 → 100644
浏览文件 @
c8590fbf
3.5 KB
o2web/source/x_component_cms_FormDesigner/$Main/default/tools.json
浏览文件 @
c8590fbf
...
...
@@ -191,6 +191,11 @@
"text"
:
MWF.xApplication.cms.FormDesigner.LP.modules.htmledit
,
"className"
:
"Htmleditor"
},
"tinymceEditor"
:
{
"icon"
:
"tinymceeditor.png"
,
"text"
:
MWF.xApplication.cms.FormDesigner.LP.modules.tinymceEditor
,
"className"
:
"TinyMCEEditor"
},
"log"
:
{
"icon"
:
"log.png"
,
"text"
:
MWF.xApplication.cms.FormDesigner.LP.modules.log
,
...
...
o2web/source/x_component_cms_FormDesigner/Module/Form.js
浏览文件 @
c8590fbf
...
...
@@ -8,7 +8,7 @@ MWF.xApplication.cms.FormDesigner.Module.Form = MWF.CMSFCForm = new Class({
"
propertyPath
"
:
"
../x_component_cms_FormDesigner/Module/Form/form.html
"
,
"
mode
"
:
"
PC
"
,
"
fields
"
:
[
"
Calendar
"
,
"
Checkbox
"
,
"
Datagrid
"
,
"
Datagrid$Title
"
,
"
Datagrid$Data
"
,
"
Datatable
"
,
"
Datatable$Title
"
,
"
Datatable$Data
"
,
"
Datatemplate
"
,
"
Htmleditor
"
,
"
Number
"
,
"
Office
"
,
"
Orgfield
"
,
"
Personfield
"
,
"
Readerfield
"
,
"
Authorfield
"
,
"
Org
"
,
"
Reader
"
,
"
Author
"
,
"
Radio
"
,
"
Select
"
,
"
Textarea
"
,
"
Textfield
"
,
"
Address
"
,
"
Combox
"
],
"
Datatemplate
"
,
"
Htmleditor
"
,
"
TinyMCEEditor
"
,
"
Number
"
,
"
Office
"
,
"
Orgfield
"
,
"
Personfield
"
,
"
Readerfield
"
,
"
Authorfield
"
,
"
Org
"
,
"
Reader
"
,
"
Author
"
,
"
Radio
"
,
"
Select
"
,
"
Textarea
"
,
"
Textfield
"
,
"
Address
"
,
"
Combox
"
],
"
injectActions
"
:
[
{
"
name
"
:
"
top
"
,
...
...
o2web/source/x_component_cms_FormDesigner/Module/Package.js
浏览文件 @
c8590fbf
...
...
@@ -38,6 +38,7 @@ MWF.xDesktop.requireApp("cms.FormDesigner", "Module.Tab", null, false);
MWF
.
xDesktop
.
requireApp
(
"
cms.FormDesigner
"
,
"
Module.Tree
"
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
cms.FormDesigner
"
,
"
Module.Iframe
"
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
cms.FormDesigner
"
,
"
Module.Htmleditor
"
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
cms.FormDesigner
"
,
"
Module.TinyMCEEditor
"
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
cms.FormDesigner
"
,
"
Module.Common
"
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
cms.FormDesigner
"
,
"
Module.Documenteditor
"
,
null
,
false
);
MWF
.
xDesktop
.
requireApp
(
"
cms.FormDesigner
"
,
"
Module.Office
"
,
null
,
false
);
...
...
o2web/source/x_component_cms_FormDesigner/Module/TinyMCEEditor.js
0 → 100644
浏览文件 @
c8590fbf
MWF
.
xApplication
.
cms
.
FormDesigner
.
Module
=
MWF
.
xApplication
.
cms
.
FormDesigner
.
Module
||
{};
MWF
.
xDesktop
.
requireApp
(
"
process.FormDesigner
"
,
"
Module.TinyMCEEditor
"
,
null
,
false
);
MWF
.
xApplication
.
cms
.
FormDesigner
.
Module
.
TinyMCEEditor
=
MWF
.
CMSFCTinyMCEEditor
=
new
Class
({
Extends
:
MWF
.
FCTinyMCEEditor
,
Implements
:
[
MWF
.
CMSFCMI
],
_setEditStyle_custom
:
function
(
name
){
if
(
name
==
"
editorProperties
"
){
if
(
this
.
editor
){
Object
.
each
(
this
.
json
.
editorProperties
,
function
(
value
,
key
){
if
(
value
==
"
true
"
)
this
.
json
.
editorProperties
[
key
]
=
true
;
if
(
value
==
"
false
"
)
this
.
json
.
editorProperties
[
key
]
=
false
;
}.
bind
(
this
));
this
.
distroyEditor
();
var
config
=
Object
.
clone
(
this
.
json
.
editorProperties
);
if
(
this
.
json
.
config
){
if
(
this
.
json
.
config
.
code
){
var
obj
=
MWF
.
Macro
.
exec
(
this
.
json
.
config
.
code
,
this
);
Object
.
each
(
obj
,
function
(
v
,
k
){
config
[
k
]
=
v
;
});
}
}
this
.
loadTinyMCEEditor
(
config
);
}
}
if
(
name
==
"
templateCode
"
){
if
(
this
.
editor
)
{
this
.
editor
.
setContent
(
this
.
json
.
templateCode
);
}
}
},
_initModule
:
function
(){
this
.
node
.
empty
();
var
config
=
Object
.
clone
(
this
.
json
.
editorProperties
);
if
(
this
.
json
.
config
){
if
(
this
.
json
.
config
.
code
){
var
obj
=
MWF
.
Macro
.
exec
(
this
.
json
.
config
.
code
,
this
);
Object
.
each
(
obj
,
function
(
v
,
k
){
config
[
k
]
=
v
;
});
}
}
this
.
loadTinyMCEEditor
(
config
);
this
.
_setNodeProperty
();
if
(
!
this
.
form
.
isSubform
)
this
.
_createIconAction
()
;
this
.
_setNodeEvent
();
}
});
o2web/source/x_component_cms_Xform/TinyMCEEditor.js
0 → 100644
浏览文件 @
c8590fbf
MWF
.
xDesktop
.
requireApp
(
"
process.Xform
"
,
"
TinyMCEEditor
"
,
null
,
false
);
MWF
.
xApplication
.
cms
.
Xform
.
TinyMCEEditor
=
MWF
.
CMSTinyMCEEditor
=
new
Class
({
Extends
:
MWF
.
APPTinyMCEEditor
,
getImageUploadOption
:
function
(){
return
{
localImageMaxWidth
:
2000
,
reference
:
this
.
form
.
businessData
.
document
.
id
,
referenceType
:
"
cmsDocument
"
};
},
getEditorId
:
function
(){
return
this
.
form
.
businessData
.
document
.
id
+
"
_
"
+
this
.
json
.
id
+
"
_
"
+
(
layout
.
mobile
?
"
mobile
"
:
"
pc
"
);
},
getText
:
function
()
{
return
this
.
editor
?
this
.
editor
.
getContent
({
format
:
'
text
'
})
:
""
;
},
getImages
:
function
()
{
if
(
!
this
.
editor
)
return
[];
var
result
=
[];
var
imgaes
=
this
.
editor
.
getBody
();
if
(
imgaes
)
{
for
(
var
i
=
0
;
i
<
imgaes
.
$
.
length
;
i
++
)
{
result
.
push
(
imgaes
.
getItem
(
i
).
$
);
}
}
return
result
;
},
getImageIds
:
function
()
{
var
result
=
[];
var
images
=
this
.
getImages
();
for
(
var
i
=
0
;
i
<
images
.
length
;
i
++
)
{
var
img
=
images
[
i
];
if
(
img
.
getAttribute
(
"
data-id
"
))
{
result
.
push
(
img
.
getAttribute
(
"
data-id
"
))
}
}
return
result
;
},
_loadStyles
:
function
()
{
if
(
this
.
json
.
styles
)
this
.
node
.
setStyles
(
this
.
json
.
styles
);
this
.
node
.
setStyle
(
"
overflow
"
,
"
hidden
"
);
},
validationConfigItem
:
function
(
routeName
,
data
)
{
var
flag
=
(
data
.
status
==
"
all
"
)
?
true
:
(
routeName
==
"
publish
"
);
if
(
flag
)
{
var
n
=
this
.
getData
();
var
v
=
(
data
.
valueType
==
"
value
"
)
?
n
:
n
.
length
;
switch
(
data
.
operateor
)
{
case
"
isnull
"
:
if
(
!
v
)
{
this
.
notValidationMode
(
data
.
prompt
);
return
false
;
}
break
;
case
"
notnull
"
:
if
(
v
)
{
this
.
notValidationMode
(
data
.
prompt
);
return
false
;
}
break
;
case
"
gt
"
:
if
(
v
>
data
.
value
)
{
this
.
notValidationMode
(
data
.
prompt
);
return
false
;
}
break
;
case
"
lt
"
:
if
(
v
<
data
.
value
)
{
this
.
notValidationMode
(
data
.
prompt
);
return
false
;
}
break
;
case
"
equal
"
:
if
(
v
==
data
.
value
)
{
this
.
notValidationMode
(
data
.
prompt
);
return
false
;
}
break
;
case
"
neq
"
:
if
(
v
!=
data
.
value
)
{
this
.
notValidationMode
(
data
.
prompt
);
return
false
;
}
break
;
case
"
contain
"
:
if
(
v
.
indexOf
(
data
.
value
)
!=
-
1
)
{
this
.
notValidationMode
(
data
.
prompt
);
return
false
;
}
break
;
case
"
notcontain
"
:
if
(
v
.
indexOf
(
data
.
value
)
==
-
1
)
{
this
.
notValidationMode
(
data
.
prompt
);
return
false
;
}
break
;
}
}
return
true
;
}
});
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录