|
|
|
@ -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); |
|
|
|
|