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