|
|
|
@ -83019,8 +83019,8 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
|
|
|
|
|
var attrs = BI.DOM.getImage(o.paramFormatter(param)); |
|
|
|
|
image.src = attrs.src; |
|
|
|
|
image.alt = param; |
|
|
|
|
image.style = attrs.style; |
|
|
|
|
$(image).addClass("rich-editor-param"); |
|
|
|
|
$(image).attr("style", attrs.style); |
|
|
|
|
this.options.editor.insertHTML($("<div>").append(image).html()); |
|
|
|
|
// var sel = this._get$Sel();
|
|
|
|
|
// var wrapper = o.editor.instance.getElm().element;
|
|
|
|
@ -83160,7 +83160,7 @@ BI.RichEditorTextToolbar = BI.inherit(BI.Widget, {
|
|
|
|
|
{type: "bi.rich_editor_align_right_button"}, |
|
|
|
|
{type: "bi.rich_editor_param_button"} |
|
|
|
|
], |
|
|
|
|
height: 28 |
|
|
|
|
height: 34 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -83182,7 +83182,7 @@ BI.RichEditorTextToolbar = BI.inherit(BI.Widget, {
|
|
|
|
|
element: this, |
|
|
|
|
items: buttons, |
|
|
|
|
hgap: 3, |
|
|
|
|
vgap: 3 |
|
|
|
|
vgap: 6 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -83527,7 +83527,11 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/**
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
// w3c
|
|
|
|
|
this.nicCommand("insertHTML", html); |
|
|
|
|
if (document.queryCommandState("insertHTML")) { |
|
|
|
|
this.nicCommand("insertHTML", html); |
|
|
|
|
} else { |
|
|
|
|
throw new Error("Does not support this command"); |
|
|
|
|
} |
|
|
|
|
} catch(e) { |
|
|
|
|
if (range.insertNode) { |
|
|
|
|
// IE
|
|
|
|
@ -84182,6 +84186,14 @@ BI.RichEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
readOnly: false |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.RichEditor.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
adjustLength: 1, |
|
|
|
|
adjustXOffset: 0, |
|
|
|
|
adjustYOffset: 0 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
var editor = { |
|
|
|
@ -84218,7 +84230,9 @@ BI.RichEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
direction: "top,right", |
|
|
|
|
isNeedAdjustWidth: false, |
|
|
|
|
isNeedAdjustHeight: false, |
|
|
|
|
adjustLength: 1, |
|
|
|
|
adjustLength: o.adjustLength, |
|
|
|
|
adjustXOffset: o.adjustXOffset, |
|
|
|
|
adjustYOffset: o.adjustYOffset, |
|
|
|
|
ref: function () { |
|
|
|
|
self.combo = this; |
|
|
|
|
}, |
|
|
|
@ -84228,7 +84242,7 @@ BI.RichEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.rich_editor_text_toolbar", |
|
|
|
|
editor: this.editor |
|
|
|
|
}, o.toolbar), |
|
|
|
|
height: 30, |
|
|
|
|
height: 34, |
|
|
|
|
stopPropagation: true, |
|
|
|
|
stopEvent: true |
|
|
|
|
}, |
|
|
|
|