diff --git a/src/case/richeditor/niceditor/niceditor.js b/src/case/richeditor/niceditor/niceditor.js index b5829ab50..3a33a2aa1 100644 --- a/src/case/richeditor/niceditor/niceditor.js +++ b/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);