fay 6 years ago
parent
commit
e6b5bfd5d3
  1. 7
      src/case/richeditor/niceditor/niceditor.js

7
src/case/richeditor/niceditor/niceditor.js

@ -65,14 +65,19 @@
selectCheck: function (e) {
var t = e.target;
var self = this;
var found = false;
this.instance.saveRng();
do {
if (t.nodeName !== "svg" && t.className && t.className.indexOf(prefix) != -1) {
return;
// return false;
}
if (this.instance.checkToolbar(t)) {
this.instance.saveRng();
// 如果是点击在toolbar内恢复选取(IE中出现的问题)
BI.defer(function () {
self.instance.restoreRng();
});
return;
}
} while (t = t.parentNode);

Loading…
Cancel
Save