Browse Source

Merge pull request #127 in FUI/fineui from ~GUY/fineui:master to master

* commit '3211b5dc8697eb2e426ace844f6a4ce667534393':
  add
master
guy 7 years ago
parent
commit
b174a28d07
  1. 7
      bi/base.js
  2. 7
      dist/base.js
  3. 7
      dist/bundle.js
  4. 14
      dist/bundle.min.js
  5. 7
      src/base/richeditor/bar/action.richeditor.param.js

7
bi/base.js

@ -16360,7 +16360,10 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
color: "white",
backgroundColor: "#009de3",
padding: "0 5px"
}).text(param).mousedown(function (e) {
}).text(param).keydown(function (e) {
if (e.keyCode === BI.KeyCode.BACKSPACE || e.keyCode === BI.KeyCode.DELETE) {
$param.destroy();
}
e.stopEvent();
return false;
});
@ -16389,7 +16392,7 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
return false;
}
}
if (e.keyCode === BI.KeyCode.BACKSPACE) {
if (e.keyCode === BI.KeyCode.BACKSPACE || e.keyCode === BI.KeyCode.DELETE) {
if (this._isParam(sel)) {
sel.destroy();
e.preventDefault();

7
dist/base.js vendored

@ -16360,7 +16360,10 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
color: "white",
backgroundColor: "#009de3",
padding: "0 5px"
}).text(param).mousedown(function (e) {
}).text(param).keydown(function (e) {
if (e.keyCode === BI.KeyCode.BACKSPACE || e.keyCode === BI.KeyCode.DELETE) {
$param.destroy();
}
e.stopEvent();
return false;
});
@ -16389,7 +16392,7 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
return false;
}
}
if (e.keyCode === BI.KeyCode.BACKSPACE) {
if (e.keyCode === BI.KeyCode.BACKSPACE || e.keyCode === BI.KeyCode.DELETE) {
if (this._isParam(sel)) {
sel.destroy();
e.preventDefault();

7
dist/bundle.js vendored

@ -45231,7 +45231,10 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
color: "white",
backgroundColor: "#009de3",
padding: "0 5px"
}).text(param).mousedown(function (e) {
}).text(param).keydown(function (e) {
if (e.keyCode === BI.KeyCode.BACKSPACE || e.keyCode === BI.KeyCode.DELETE) {
$param.destroy();
}
e.stopEvent();
return false;
});
@ -45260,7 +45263,7 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
return false;
}
}
if (e.keyCode === BI.KeyCode.BACKSPACE) {
if (e.keyCode === BI.KeyCode.BACKSPACE || e.keyCode === BI.KeyCode.DELETE) {
if (this._isParam(sel)) {
sel.destroy();
e.preventDefault();

14
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

7
src/base/richeditor/bar/action.richeditor.param.js

@ -54,7 +54,10 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
color: "white",
backgroundColor: "#009de3",
padding: "0 5px"
}).text(param).mousedown(function (e) {
}).text(param).keydown(function (e) {
if (e.keyCode === BI.KeyCode.BACKSPACE || e.keyCode === BI.KeyCode.DELETE) {
$param.destroy();
}
e.stopEvent();
return false;
});
@ -83,7 +86,7 @@ BI.RichEditorParamAction = BI.inherit(BI.RichEditorAction, {
return false;
}
}
if (e.keyCode === BI.KeyCode.BACKSPACE) {
if (e.keyCode === BI.KeyCode.BACKSPACE || e.keyCode === BI.KeyCode.DELETE) {
if (this._isParam(sel)) {
sel.destroy();
e.preventDefault();

Loading…
Cancel
Save