Browse Source

update

master
guy 7 years ago
parent
commit
7268b1e86d
  1. 16
      dist/bundle.js
  2. 30
      dist/bundle.min.js
  3. 16
      dist/case.js
  4. 16
      dist/fineui.js
  5. 28
      dist/fineui.min.js
  6. 16
      src/case/richeditor/bar/action.richeditor.param.js

16
dist/bundle.js vendored

@ -80145,6 +80145,13 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
}
},
_get$Sel: function () {
var o = this.options;
var instance = o.editor.selectedInstance;
var sel = $(instance.selElm());
return sel;
},
addParam: function (param) {
var o = this.options;
var instance = o.editor.instance;
@ -80153,7 +80160,14 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
image.src = attrs.src;
image.alt = param;
image.style = attrs.style;
instance.getElm().element.append(image);
var sel = this._get$Sel();
var wrapper = o.editor.instance.getElm().element;
if (wrapper.find(sel).length <= 0) {
wrapper.append(image);
} else {
sel.after(image);
}
this._addBlank($(image));
}
});

30
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

16
dist/case.js vendored

@ -9959,6 +9959,13 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
}
},
_get$Sel: function () {
var o = this.options;
var instance = o.editor.selectedInstance;
var sel = $(instance.selElm());
return sel;
},
addParam: function (param) {
var o = this.options;
var instance = o.editor.instance;
@ -9967,7 +9974,14 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
image.src = attrs.src;
image.alt = param;
image.style = attrs.style;
instance.getElm().element.append(image);
var sel = this._get$Sel();
var wrapper = o.editor.instance.getElm().element;
if (wrapper.find(sel).length <= 0) {
wrapper.append(image);
} else {
sel.after(image);
}
this._addBlank($(image));
}
});

16
dist/fineui.js vendored

@ -81909,6 +81909,13 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
}
},
_get$Sel: function () {
var o = this.options;
var instance = o.editor.selectedInstance;
var sel = $(instance.selElm());
return sel;
},
addParam: function (param) {
var o = this.options;
var instance = o.editor.instance;
@ -81917,7 +81924,14 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
image.src = attrs.src;
image.alt = param;
image.style = attrs.style;
instance.getElm().element.append(image);
var sel = this._get$Sel();
var wrapper = o.editor.instance.getElm().element;
if (wrapper.find(sel).length <= 0) {
wrapper.append(image);
} else {
sel.after(image);
}
this._addBlank($(image));
}
});

28
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

16
src/case/richeditor/bar/action.richeditor.param.js

@ -30,6 +30,13 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
}
},
_get$Sel: function () {
var o = this.options;
var instance = o.editor.selectedInstance;
var sel = $(instance.selElm());
return sel;
},
addParam: function (param) {
var o = this.options;
var instance = o.editor.instance;
@ -38,7 +45,14 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
image.src = attrs.src;
image.alt = param;
image.style = attrs.style;
instance.getElm().element.append(image);
var sel = this._get$Sel();
var wrapper = o.editor.instance.getElm().element;
if (wrapper.find(sel).length <= 0) {
wrapper.append(image);
} else {
sel.after(image);
}
this._addBlank($(image));
}
});

Loading…
Cancel
Save