|
|
@ -82820,7 +82820,8 @@ BI.RichEditorAction = BI.inherit(BI.Widget, { |
|
|
|
return BI.extend(BI.RichEditorAction.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.RichEditorAction.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
width: 20, |
|
|
|
width: 20, |
|
|
|
height: 20, |
|
|
|
height: 20, |
|
|
|
command: "" |
|
|
|
command: "", |
|
|
|
|
|
|
|
used: true |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -82828,14 +82829,19 @@ BI.RichEditorAction = BI.inherit(BI.Widget, { |
|
|
|
BI.RichEditorAction.superclass._init.apply(this, arguments); |
|
|
|
BI.RichEditorAction.superclass._init.apply(this, arguments); |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
o.editor.on(BI.NicEditor.EVENT_SELECTED, function (e) { |
|
|
|
o.editor.on(BI.NicEditor.EVENT_SELECTED, function (e) { |
|
|
|
|
|
|
|
if (o.used === true) { |
|
|
|
self.setEnable(true); |
|
|
|
self.setEnable(true); |
|
|
|
self.checkNodes(e.target); |
|
|
|
self.checkNodes(e.target); |
|
|
|
self.key(e); |
|
|
|
self.key(e); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
o.editor.on(BI.NicEditor.EVENT_BLUR, function () { |
|
|
|
o.editor.on(BI.NicEditor.EVENT_BLUR, function () { |
|
|
|
self.setEnable(false); |
|
|
|
self.setEnable(false); |
|
|
|
}); |
|
|
|
}); |
|
|
|
o.editor.on(BI.NicEditor.EVENT_KEYDOWN, BI.bind(this.keydown, this)); |
|
|
|
o.editor.on(BI.NicEditor.EVENT_KEYDOWN, BI.bind(this.keydown, this)); |
|
|
|
|
|
|
|
if (o.used === false) { |
|
|
|
|
|
|
|
this.setEnable(false); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
checkNodes: function (e) { |
|
|
|
checkNodes: function (e) { |
|
|
|