Browse Source

BI-25467

master
fay 7 years ago
parent
commit
1222fc1fed
  1. 7
      src/case/richeditor/niceditor/niceditor.js

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

@ -307,10 +307,10 @@
insertHTML: function (html) {
var range = this.getRng();
if (document.queryCommandState("insertHTML")) {
// W3C
try {
this.nicCommand("insertHTML", html);
} else if (range.insertNode) {
} finally {
if (range.insertNode) {
// IE
range.deleteContents();
range.insertNode($(html)[0]);
@ -318,6 +318,7 @@
// IE <= 10
range.pasteHTML(html);
}
}
},
nicCommand: function (cmd, args) {

Loading…
Cancel
Save