|
|
@ -82903,13 +82903,13 @@ BI.RichEditorAction = BI.inherit(BI.Widget, { |
|
|
|
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) { |
|
|
|
// if (o.used === false) {
|
|
|
|
this.setEnable(false); |
|
|
|
// this.setEnable(false);
|
|
|
|
} |
|
|
|
// }
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
checkNodes: function (e) { |
|
|
|
checkNodes: function (e) { |
|
|
@ -83272,9 +83272,12 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/** |
|
|
|
return; |
|
|
|
return; |
|
|
|
// return false;
|
|
|
|
// return false;
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (this.instance.checkToolbar(t)) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
} while (t = t.parentNode); |
|
|
|
} while (t = t.parentNode); |
|
|
|
this.fireEvent("blur", t); |
|
|
|
this.fireEvent("blur", t); |
|
|
|
this.lastSelectedInstance = this.selectedInstance; |
|
|
|
this.lastSelectedInstance = this.selectedInstance || this.lastSelectedInstance; |
|
|
|
this.selectedInstance = null; |
|
|
|
this.selectedInstance = null; |
|
|
|
// return false;
|
|
|
|
// return false;
|
|
|
|
}, |
|
|
|
}, |
|
|
@ -83283,6 +83286,10 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/** |
|
|
|
this.instance.focus(); |
|
|
|
this.instance.focus(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bindToolbar: function (toolbar) { |
|
|
|
|
|
|
|
this.instance.bindToolbar(toolbar); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|
this.instance.setContent(v); |
|
|
|
this.instance.setContent(v); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -83291,6 +83298,10 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/** |
|
|
|
return this.instance.getContent(); |
|
|
|
return this.instance.getContent(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getInstance: function () { |
|
|
|
|
|
|
|
return this.instance; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
destroyed: function () { |
|
|
|
destroyed: function () { |
|
|
|
$(document).unbind("mousedown." + this.getName()); |
|
|
|
$(document).unbind("mousedown." + this.getName()); |
|
|
|
} |
|
|
|
} |
|
|
@ -83529,6 +83540,14 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/** |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bindToolbar: function (toolbar) { |
|
|
|
|
|
|
|
this.toolbar = toolbar; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkToolbar: function (element) { |
|
|
|
|
|
|
|
return this.toolbar && this.toolbar.element[0] === element; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
nicCommand: function (cmd, args) { |
|
|
|
nicCommand: function (cmd, args) { |
|
|
|
document.execCommand(cmd, false, args); |
|
|
|
document.execCommand(cmd, false, args); |
|
|
|
} |
|
|
|
} |
|
|
|