Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
6cddaa67
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
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,发现更多精彩内容 >>
提交
6cddaa67
编写于
5月 11, 2020
作者:
NoSubject
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新政脚本编辑器monaco
上级
8c5a9442
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
151 addition
and
52 deletion
+151
-52
o2web/source/o2_core/o2/widget/CssArea.js
o2web/source/o2_core/o2/widget/CssArea.js
+15
-5
o2web/source/o2_core/o2/widget/HtmlEditorArea.js
o2web/source/o2_core/o2/widget/HtmlEditorArea.js
+14
-3
o2web/source/o2_core/o2/widget/JavascriptEditor.js
o2web/source/o2_core/o2/widget/JavascriptEditor.js
+32
-23
o2web/source/o2_core/o2/widget/MWFRaphael.js
o2web/source/o2_core/o2/widget/MWFRaphael.js
+1
-1
o2web/source/o2_core/o2/widget/ScriptArea.js
o2web/source/o2_core/o2/widget/ScriptArea.js
+12
-4
o2web/source/x_component_cms_ScriptDesigner/Script.js
o2web/source/x_component_cms_ScriptDesigner/Script.js
+11
-3
o2web/source/x_component_portal_PageDesigner/Script.js
o2web/source/x_component_portal_PageDesigner/Script.js
+22
-4
o2web/source/x_component_portal_ScriptDesigner/Script.js
o2web/source/x_component_portal_ScriptDesigner/Script.js
+7
-1
o2web/source/x_component_process_ProcessDesigner/widget/ScriptText.js
.../x_component_process_ProcessDesigner/widget/ScriptText.js
+9
-3
o2web/source/x_component_query_StatementDesigner/Statement.js
...b/source/x_component_query_StatementDesigner/Statement.js
+7
-2
o2web/source/x_component_query_TableDesigner/Table.js
o2web/source/x_component_query_TableDesigner/Table.js
+5
-1
o2web/source/x_component_service_AgentDesigner/Agent.js
o2web/source/x_component_service_AgentDesigner/Agent.js
+8
-1
o2web/source/x_component_service_InvokeDesigner/Invoke.js
o2web/source/x_component_service_InvokeDesigner/Invoke.js
+8
-1
未找到文件。
o2web/source/o2_core/o2/widget/CssArea.js
浏览文件 @
6cddaa67
o2
.
widget
=
o2
.
widget
||
{};
o2
.
require
(
"
o2.widget.ScriptArea
"
,
null
,
false
);
o2
.
require
(
"
o2.widget.CssEditor
"
,
null
,
false
);
//o2.require("o2.widget.CssEditor", null, false);
o2
.
widget
.
CssArea
=
new
Class
({
Implements
:
[
Options
,
Events
],
Extends
:
o2
.
widget
.
ScriptArea
,
...
...
@@ -52,22 +53,31 @@ o2.widget.CssArea = new Class({
loadEditor
:
function
(
content
){
var
value
=
(
content
)
?
content
.
code
:
""
;
value
=
(
value
)
?
value
:
""
;
this
.
jsEditor
=
new
o2
.
widget
.
Css
Editor
(
this
.
contentNode
,{
this
.
jsEditor
=
new
o2
.
widget
.
Javascript
Editor
(
this
.
contentNode
,{
"
option
"
:
{
"
mode
"
:
"
css
"
,
"
value
"
:
value
,
"
lineNumbers
"
:
false
},
"
onPostLoad
"
:
function
(){
this
.
editor
=
this
.
jsEditor
.
editor
;
this
.
editor
.
id
=
"
2
"
;
this
.
editor
.
on
(
"
change
"
,
function
()
{
this
.
jsEditor
.
addEditorEvent
(
"
change
"
,
function
()
{
this
.
fireEvent
(
"
change
"
);
}.
bind
(
this
));
this
.
editor
.
on
(
"
blur
"
,
function
()
{
this
.
jsEditor
.
addEditorEvent
(
"
blur
"
,
function
()
{
this
.
fireEvent
(
"
blur
"
);
}.
bind
(
this
));
this
.
editor
.
resize
();
// this.editor.on("change", function() {
// this.fireEvent("change");
// }.bind(this));
// this.editor.on("blur", function() {
// this.fireEvent("blur");
// }.bind(this));
this
.
jsEditor
.
resize
();
this
.
fireEvent
(
"
postLoad
"
);
}.
bind
(
this
),
"
onSave
"
:
function
(){
...
...
o2web/source/o2_core/o2/widget/HtmlEditorArea.js
浏览文件 @
6cddaa67
o2
.
widget
=
o2
.
widget
||
{};
o2
.
require
(
"
o2.widget.HtmlEditor
"
,
null
,
false
);
//o2.require("o2.widget.HtmlEditor", null, false);
o2
.
require
(
"
o2.widget.ScriptArea
"
,
null
,
false
);
o2
.
widget
.
HtmlEditorArea
=
new
Class
({
Implements
:
[
Options
,
Events
],
Extends
:
o2
.
widget
.
ScriptArea
,
...
...
@@ -7,16 +8,26 @@ o2.widget.HtmlEditorArea = new Class({
loadEditor
:
function
(
content
){
var
value
=
(
content
)
?
content
.
code
:
""
;
value
=
(
value
)
?
value
:
""
;
this
.
jsEditor
=
new
o2
.
widget
.
Html
Editor
(
this
.
contentNode
,{
this
.
jsEditor
=
new
o2
.
widget
.
Javascript
Editor
(
this
.
contentNode
,{
"
option
"
:
{
"
mode
"
:
"
html
"
,
"
value
"
:
value
,
"
lineNumbers
"
:
false
},
"
onPostLoad
"
:
function
(){
this
.
editor
=
this
.
jsEditor
.
editor
;
this
.
editor
.
on
(
"
change
"
,
function
()
{
this
.
jsEditor
.
addEditorEvent
(
"
change
"
,
function
()
{
this
.
fireEvent
(
"
change
"
);
}.
bind
(
this
));
this
.
jsEditor
.
addEditorEvent
(
"
blur
"
,
function
()
{
this
.
fireEvent
(
"
blur
"
);
}.
bind
(
this
));
// this.editor.on("change", function() {
// this.fireEvent("change");
// }.bind(this));
this
.
jsEditor
.
resize
();
this
.
fireEvent
(
"
postLoad
"
);
}.
bind
(
this
),
"
onSave
"
:
function
(){
...
...
o2web/source/o2_core/o2/widget/JavascriptEditor.js
浏览文件 @
6cddaa67
...
...
@@ -89,28 +89,38 @@ o2.widget.JavascriptEditor = new Class({
this
.
editorClass
.
load
(
function
(){
this
.
editor
=
monaco
.
editor
.
create
(
this
.
node
,
{
value
:
this
.
options
.
option
.
value
,
language
:
"
javascript
"
,
language
:
this
.
options
.
option
.
mode
,
theme
:
this
.
theme
,
fontSize
:
this
.
fontSize
,
lineNumbersMinChars
:
3
,
lineNumbers
:
(
this
.
options
.
option
.
lineNumbers
)
?
"
on
"
:
"
off
"
,
mouseWheelZoom
:
true
,
automaticLayout
:
true
});
this
.
focus
();
o2
.
require
(
"
o2.xScript.Macro
"
,
function
(){
o2
.
require
(
"
o2.xScript.Macro
"
,
function
()
{
var
json
=
null
;
o2
.
getJSON
(
"
/o2_core/o2/widget/$JavascriptEditor/environment.json
"
,
function
(
data
){
json
=
data
;
},
false
);
o2
.
getJSON
(
"
/o2_core/o2/widget/$JavascriptEditor/environment.json
"
,
function
(
data
)
{
json
=
data
;
},
false
);
this
.
Macro
=
new
o2
.
Macro
.
FormContext
(
json
);
//registerReferenceProvider
//monaco.languages.registerReferenceProvider('javascript', {
monaco
.
languages
.
registerCompletionItemProvider
(
'
javascript
'
,
{
provideCompletionItems
:
function
(
model
,
position
,
context
,
token
)
{
"
triggerCharacters
"
:
[
"
.
"
],
provideCompletionItems
:
function
(
model
,
position
,
context
,
token
)
{
debugger
;
var
textUntilPosition
=
model
.
getValueInRange
({
startLineNumber
:
position
.
lineNumber
,
startColumn
:
1
,
endLineNumber
:
position
.
lineNumber
,
endColumn
:
position
.
column
});
var
textUntilPosition
=
model
.
getValueInRange
({
startLineNumber
:
position
.
lineNumber
,
startColumn
:
1
,
endLineNumber
:
position
.
lineNumber
,
endColumn
:
position
.
column
});
var
textPrefix
=
textUntilPosition
.
substr
(
0
,
textUntilPosition
.
lastIndexOf
(
"
.
"
));
code
=
"
try {return
"
+
textPrefix
+
"
;}catch(e){return null;}
"
;
//code = "try {return this;}catch(e){return null;}";
var
o
=
this
.
Macro
.
exec
(
code
);
var
word
=
model
.
getWordUntilPosition
(
position
);
...
...
@@ -121,43 +131,40 @@ o2.widget.JavascriptEditor = new Class({
endColumn
:
word
.
endColumn
};
if
(
o
){
if
(
o
)
{
var
arr
=
[];
Object
.
keys
(
o
).
each
(
function
(
key
)
{
Object
.
keys
(
o
).
each
(
function
(
key
)
{
var
type
=
typeOf
(
o
[
key
]);
if
(
type
===
"
function
"
)
{
if
(
type
===
"
function
"
)
{
var
count
=
o
[
key
].
length
;
var
v
=
key
+
"
(
"
;
for
(
var
i
=
1
;
i
<=
count
;
i
++
)
v
+=
(
i
==
count
)
?
"
par
"
+
i
:
"
par
"
+
i
+
"
,
"
;
v
+=
"
);
"
;
var
v
=
key
+
"
(
"
;
for
(
var
i
=
1
;
i
<=
count
;
i
++
)
v
+=
(
i
==
count
)
?
"
par
"
+
i
:
"
par
"
+
i
+
"
,
"
;
v
+=
"
)
"
;
arr
.
push
({
label
:
key
,
kind
:
monaco
.
languages
.
CompletionItemKind
.
Function
,
//documentation: "Fast, unopinionated, minimalist web framework",
insertText
:
v
,
range
:
range
range
:
range
,
detail
:
type
});
}
else
{
}
else
{
arr
.
push
({
label
:
key
,
kind
:
monaco
.
languages
.
CompletionItemKind
.
Interface
,
//documentation: "Fast, unopinionated, minimalist web framework",
insertText
:
key
,
range
:
range
range
:
range
,
detail
:
type
});
}
});
}
return
{
suggestions
:
arr
}
}.
bind
(
this
),
resolveCompletionItem
:
this
.
provideCompletionItems
}.
bind
(
this
)
});
}.
bind
(
this
));
});
this
.
editor
.
addCommand
(
monaco
.
KeyMod
.
CtrlCmd
|
monaco
.
KeyCode
.
KEY_S
,
function
(
e
){
this
.
fireEvent
(
"
save
"
);
...
...
@@ -238,14 +245,14 @@ o2.widget.JavascriptEditor = new Class({
caption
:
key
,
value
:
v
,
score
:
3
,
meta
:
"
function O2
"
meta
:
type
});
}
else
{
arr2
.
push
({
caption
:
key
,
value
:
x
+
"
.
"
+
key
,
score
:
3
,
meta
:
(
type
!=
"
null
"
)
?
typeOf
(
o
[
key
])
+
"
O2
"
:
"
O2
"
meta
:
type
});
}
});
...
...
@@ -319,6 +326,8 @@ o2.widget.JavascriptEditor = new Class({
var
ev
=
name
;
switch
(
ev
)
{
case
"
change
"
:
ev
=
"
onDidChangeModelContent
"
;
break
;
case
"
blue
"
:
ev
=
"
onDidBlurEditorText
"
;
break
;
}
if
(
this
.
editor
[
ev
])
this
.
editor
[
ev
](
fun
);
break
;
...
...
o2web/source/o2_core/o2/widget/MWFRaphael.js
浏览文件 @
6cddaa67
...
...
@@ -4,7 +4,7 @@ o2.widget.MWFRaphael = MWFRaphael = {
if
(
window
.
Raphael
){
if
(
callback
)
callback
();
}
else
{
COMMON
.
AjaxModule
.
load
Dom
(
"
raphael
"
,
function
(){
COMMON
.
AjaxModule
.
load
(
"
raphael
"
,
function
(){
this
.
expandRaphael
();
if
(
callback
)
callback
();
}.
bind
(
this
),
true
,
true
);
...
...
o2web/source/o2_core/o2/widget/ScriptArea.js
浏览文件 @
6cddaa67
...
...
@@ -120,7 +120,7 @@ o2.widget.ScriptArea = new Class({
var
th
=
this
.
titleNode
.
getStyle
(
"
height
"
).
toInt
();
var
height
=
(
size
.
y
||
h
)
-
(
titleSize
.
y
||
th
)
-
2
-
6
;
this
.
contentNode
.
setStyle
(
"
height
"
,
""
+
height
+
"
px
"
);
if
(
this
.
editor
)
this
.
e
ditor
.
resize
();
if
(
this
.
jsEditor
)
this
.
jsE
ditor
.
resize
();
},
toJson
:
function
(){
return
(
this
.
editor
)
?
{
"
code
"
:
this
.
editor
.
getValue
(),
"
html
"
:
this
.
editor
.
getValue
()}
:
this
.
contentCode
;
...
...
@@ -190,10 +190,18 @@ o2.widget.ScriptArea = new Class({
},
"
onPostLoad
"
:
function
(){
this
.
editor
=
this
.
jsEditor
.
editor
;
this
.
editor
.
id
=
"
2
"
;
this
.
editor
.
on
(
"
change
"
,
function
()
{
//this.editor.id = "2";
this
.
jsEditor
.
addEditorEvent
(
"
change
"
,
function
()
{
this
.
fireEvent
(
"
change
"
);
}.
bind
(
this
));
this
.
jsEditor
.
addEditorEvent
(
"
blur
"
,
function
()
{
this
.
fireEvent
(
"
blur
"
);
}.
bind
(
this
));
// this.editor.on("change", function() {
// this.fireEvent("change");
// }.bind(this));
// this.editor.on("paste", function() {
// o2.load("JSBeautifier", function(){
// this.editor.setValue(js_beautify(this.editor.getValue()));
...
...
@@ -201,7 +209,7 @@ o2.widget.ScriptArea = new Class({
// this.fireEvent("paste");
// }.bind(this));
this
.
e
ditor
.
resize
();
this
.
jsE
ditor
.
resize
();
this
.
fireEvent
(
"
postLoad
"
);
}.
bind
(
this
),
"
onSave
"
:
function
(){
...
...
o2web/source/x_component_cms_ScriptDesigner/Script.js
浏览文件 @
6cddaa67
...
...
@@ -104,12 +104,20 @@ MWF.xApplication.cms.ScriptDesigner.Script = new Class({
if
(
this
.
data
.
text
)
{
this
.
editor
.
editor
.
setValue
(
this
.
data
.
text
);
}
this
.
editor
.
editor
.
on
(
"
change
"
,
function
(
e
)
{
if
(
!
this
.
isChanged
)
{
this
.
editor
.
addEditorEvent
(
"
change
"
,
function
()
{
if
(
!
this
.
isChanged
){
this
.
isChanged
=
true
;
this
.
page
.
textNode
.
set
(
"
text
"
,
"
*
"
+
this
.
page
.
textNode
.
get
(
"
text
"
));
this
.
page
.
textNode
.
set
(
"
text
"
,
"
*
"
+
this
.
page
.
textNode
.
get
(
"
text
"
));
}
}.
bind
(
this
));
// this.editor.editor.on("change", function (e) {
// if (!this.isChanged) {
// this.isChanged = true;
// this.page.textNode.set("text", " * " + this.page.textNode.get("text"));
// }
// }.bind(this));
this
.
editor
.
addEvent
(
"
save
"
,
function
()
{
this
.
save
();
}.
bind
(
this
));
...
...
o2web/source/x_component_portal_PageDesigner/Script.js
浏览文件 @
6cddaa67
...
...
@@ -545,10 +545,18 @@ MWF.xApplication.portal.PageDesigner.Script = new Class({
},
"
onPostLoad
"
:
function
(){
this
.
editor
=
this
.
jsEditor
.
editor
;
this
.
editor
.
on
(
"
change
"
,
function
()
{
this
.
jsEditor
.
addEditorEvent
(
"
change
"
,
function
()
{
this
.
fireEvent
(
"
change
"
);
}.
bind
(
this
));
this
.
editor
.
resize
();
this
.
jsEditor
.
addEditorEvent
(
"
blur
"
,
function
()
{
this
.
fireEvent
(
"
blur
"
);
}.
bind
(
this
));
// this.editor.on("change", function() {
// this.fireEvent("change");
// }.bind(this));
this
.
jsEditor
.
resize
();
if
(
callback
)
callback
();
this
.
fireEvent
(
"
postLoad
"
);
}.
bind
(
this
),
...
...
@@ -842,12 +850,22 @@ MWF.xApplication.portal.PageDesigner.Script.Item = new Class({
"
onPostLoad
"
:
function
(){
this
.
editor
=
this
.
jsEditor
.
editor
;
this
.
editor
.
id
=
"
1
"
;
this
.
editor
.
on
(
"
change
"
,
function
()
{
this
.
jsEditor
.
addEditorEvent
(
"
change
"
,
function
()
{
var
text
=
this
.
scriptPage
.
textNode
.
get
(
"
text
"
);
if
(
text
.
substr
(
0
,
1
)
!==
"
*
"
)
this
.
scriptPage
.
textNode
.
set
(
"
text
"
,
"
*
"
+
text
);
this
.
change
();
}.
bind
(
this
));
this
.
editor
.
resize
();
this
.
jsEditor
.
addEditorEvent
(
"
blur
"
,
function
()
{
this
.
fireEvent
(
"
blur
"
);
}.
bind
(
this
));
// this.editor.on("change", function() {
// var text = this.scriptPage.textNode.get("text");
// if (text.substr(0,1)!=="*") this.scriptPage.textNode.set("text","*"+ text);
// this.change();
// }.bind(this));
this
.
jsEditor
.
resize
();
}.
bind
(
this
),
"
onSave
"
:
function
(){
this
.
save
();
...
...
o2web/source/x_component_portal_ScriptDesigner/Script.js
浏览文件 @
6cddaa67
...
...
@@ -102,12 +102,18 @@ MWF.xApplication.portal.ScriptDesigner.Script = new Class({
if
(
this
.
data
.
text
){
this
.
editor
.
editor
.
setValue
(
this
.
data
.
text
);
}
this
.
editor
.
editor
.
on
(
"
change
"
,
function
(
e
){
this
.
editor
.
addEditorEvent
(
"
change
"
,
function
(
){
if
(
!
this
.
isChanged
){
this
.
isChanged
=
true
;
this
.
page
.
textNode
.
set
(
"
text
"
,
"
*
"
+
this
.
page
.
textNode
.
get
(
"
text
"
));
}
}.
bind
(
this
));
// this.editor.editor.on("change", function(e){
// if (!this.isChanged){
// this.isChanged = true;
// this.page.textNode.set("text", " * "+this.page.textNode.get("text"));
// }
// }.bind(this));
this
.
editor
.
addEvent
(
"
save
"
,
function
(){
this
.
save
();
}.
bind
(
this
));
...
...
o2web/source/x_component_process_ProcessDesigner/widget/ScriptText.js
浏览文件 @
6cddaa67
...
...
@@ -56,17 +56,23 @@ MWF.xApplication.process.ProcessDesigner.widget.ScriptText = new Class({
this
.
editor
=
new
MWF
.
widget
.
JavascriptEditor
(
this
.
editorNode
,
{
"
option
"
:
{
"
value
"
:
this
.
code
},
"
onSave
"
:
function
(){
var
value
=
this
.
editor
.
editor
.
getValue
();
var
value
=
this
.
editor
.
getValue
();
this
.
fireEvent
(
"
change
"
,
[
value
]);
this
.
app
.
saveProcess
();
}.
bind
(
this
)
});
this
.
editor
.
load
(
function
(){
this
.
editor
.
editor
.
on
(
"
blur
"
,
function
(){
var
value
=
this
.
editor
.
editor
.
getValue
();
this
.
editor
.
addEditorEvent
(
"
blur
"
,
function
(){
var
value
=
this
.
editor
.
getValue
();
this
.
fireEvent
(
"
change
"
,
[
value
]);
}.
bind
(
this
));
// this.editor.editor.on("blur", function(){
// var value = this.editor.editor.getValue();
// this.fireEvent("change", [value]);
// }.bind(this));
this
.
createScriptReferenceMenu
();
this
.
editor
.
addEvent
(
"
reference
"
,
function
(
editor
,
e
,
e1
){
...
...
o2web/source/x_component_query_StatementDesigner/Statement.js
浏览文件 @
6cddaa67
...
...
@@ -208,10 +208,15 @@ MWF.xApplication.query.StatementDesigner.Statement = new Class({
}
this
.
json
.
data
=
this
.
editor
.
editor
.
getValue
();
this
.
editor
.
editor
.
on
(
"
change
"
,
function
(){
this
.
data
.
data
=
this
.
editor
.
editor
.
getValue
();
this
.
editor
.
addEditorEvent
(
"
change
"
,
function
(){
this
.
data
.
data
=
this
.
editor
.
getValue
();
this
.
checkJpqlType
();
}.
bind
(
this
));
// this.editor.editor.on("change", function(){
// this.data.data = this.editor.getValue();
// this.checkJpqlType();
// }.bind(this));
}.
bind
(
this
));
}.
bind
(
this
),
false
);
}
...
...
o2web/source/x_component_query_TableDesigner/Table.js
浏览文件 @
6cddaa67
...
...
@@ -1099,9 +1099,13 @@ MWF.xApplication.query.TableDesigner.Table.JPQLRunner = new Class({
o2
.
require
(
"
o2.widget.JavascriptEditor
"
,
function
(){
this
.
editor
=
new
o2
.
widget
.
JavascriptEditor
(
this
.
contentWhereArea
,
{
"
title
"
:
"
JPQL
"
,
"
option
"
:
{
"
mode
"
:
"
sql
"
}});
this
.
editor
.
load
(
function
(){
this
.
editor
.
editor
.
on
(
"
change
"
,
function
(){
this
.
editor
.
addEditorEvent
(
"
change
"
,
function
(){
this
.
checkJpqlType
();
}.
bind
(
this
));
// this.editor.editor.on("change", function(){
// this.checkJpqlType();
// }.bind(this));
if
(
callback
)
callback
();
}.
bind
(
this
));
}.
bind
(
this
),
false
);
...
...
o2web/source/x_component_service_AgentDesigner/Agent.js
浏览文件 @
6cddaa67
...
...
@@ -117,12 +117,19 @@ MWF.xApplication.service.AgentDesigner.Agent = new Class({
defaultText
+=
"
********************/
\n
"
;
this
.
editor
.
editor
.
setValue
(
defaultText
);
}
this
.
editor
.
editor
.
on
(
"
change
"
,
function
(
e
){
this
.
editor
.
addEditorEvent
(
"
change
"
,
function
(
){
if
(
!
this
.
isChanged
){
this
.
isChanged
=
true
;
this
.
page
.
textNode
.
set
(
"
text
"
,
"
*
"
+
this
.
page
.
textNode
.
get
(
"
text
"
));
}
}.
bind
(
this
));
// this.editor.editor.on("change", function(e){
// if (!this.isChanged){
// this.isChanged = true;
// this.page.textNode.set("text", " * "+this.page.textNode.get("text"));
// }
// }.bind(this));
this
.
editor
.
addEvent
(
"
save
"
,
function
(){
this
.
save
();
}.
bind
(
this
));
...
...
o2web/source/x_component_service_InvokeDesigner/Invoke.js
浏览文件 @
6cddaa67
...
...
@@ -124,12 +124,19 @@ MWF.xApplication.service.InvokeDesigner.Invoke = new Class({
defaultText
+=
"
********************/
\n
"
;
this
.
editor
.
editor
.
setValue
(
defaultText
);
}
this
.
editor
.
editor
.
on
(
"
change
"
,
function
(
e
){
this
.
editor
.
addEditorEvent
(
"
change
"
,
function
(
){
if
(
!
this
.
isChanged
){
this
.
isChanged
=
true
;
this
.
page
.
textNode
.
set
(
"
text
"
,
"
*
"
+
this
.
page
.
textNode
.
get
(
"
text
"
));
}
}.
bind
(
this
));
// this.editor.editor.on("change", function(e){
// if (!this.isChanged){
// this.isChanged = true;
// this.page.textNode.set("text", " * "+this.page.textNode.get("text"));
// }
// }.bind(this));
this
.
editor
.
addEvent
(
"
save
"
,
function
(){
this
.
save
();
}.
bind
(
this
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录