|
|
@ -16329,9 +16329,11 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, { |
|
|
|
var instance = o.editor.selectedInstance; |
|
|
|
var instance = o.editor.selectedInstance; |
|
|
|
var next = $param.next(); |
|
|
|
var next = $param.next(); |
|
|
|
if (next.length === 0 || this._isParam(next)) { |
|
|
|
if (next.length === 0 || this._isParam(next)) { |
|
|
|
var node = this._createBlankNode(); |
|
|
|
var preNode = this._createBlankNode(); |
|
|
|
$param.after(node); |
|
|
|
var nextNode = this._createBlankNode(); |
|
|
|
instance.setFocus(node[0]); |
|
|
|
$param.before(preNode); |
|
|
|
|
|
|
|
$param.after(nextNode); |
|
|
|
|
|
|
|
instance.setFocus(nextNode[0]); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
instance.setFocus(next[0]); |
|
|
|
instance.setFocus(next[0]); |
|
|
|
} |
|
|
|
} |
|
|
@ -16585,7 +16587,7 @@ BI.shortcut('bi.rich_editor_text_toolbar', BI.RichEditorTextToolbar);/** |
|
|
|
start: function () { |
|
|
|
start: function () { |
|
|
|
this.elm.element.attr("contentEditable", true); |
|
|
|
this.elm.element.attr("contentEditable", true); |
|
|
|
if (this.getContent() == "") { |
|
|
|
if (this.getContent() == "") { |
|
|
|
this.setContent("<br />"); |
|
|
|
// this.setContent("<br />");
|
|
|
|
} |
|
|
|
} |
|
|
|
this.instanceDoc = document.defaultView; |
|
|
|
this.instanceDoc = document.defaultView; |
|
|
|
this.elm.element.on('mousedown', BI.bind(this.selected, this)); |
|
|
|
this.elm.element.on('mousedown', BI.bind(this.selected, this)); |
|
|
|