提交 a588e7e3 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'feature/documenteditor_custom_templete' into 'develop'

Merge of feature/documenteditor_custom_templete to develop 修正cms表单脚本编辑器拷贝粘贴的问题

See merge request o2oa/o2oa!891
......@@ -126,6 +126,15 @@ o2.widget.JavascriptEditor = new Class({
this.format();
}.bind(this));
this.editor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyMod.Alt | monaco.KeyCode.KEY_F, function(e){
this.format();
}.bind(this));
// this.editor.onKeyDown(function(e){
// debugger;
// e.preventDefault();
// });
if( this.fontSize ){
this.editor.updateOptions( {"fontSize": this.fontSize} );
}
......
......@@ -92,6 +92,9 @@ MWF.xApplication.cms.FormDesigner.Main = new Class({
if (this.shortcut) {
if (this.form) {
// if (this.form.isFocus){
if (!this.form.node.contains(document.activeElement)){
return false;
}
if (this.form.currentSelectedModule) {
var module = this.form.currentSelectedModule;
if (module.moduleType != "form" && module.moduleName.indexOf("$") == -1) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册