Skip to content

Commit

Permalink
Merge pull request #2099 from IgniteUI/valadzhov/fix-html-editor-2089…
Browse files Browse the repository at this point in the history
…-20.2

fix(html-editor): Blurring the workspace after applying the content. …
  • Loading branch information
Lipata authored Nov 12, 2020
2 parents ef7a848 + 7af5911 commit 46c81d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/js/modules/infragistics.ui.htmleditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1756,13 +1756,13 @@

// Remove the dummy text and add <br> to make the element selectable
lastNode.html("<br>");

// Collapse the selection
if (lastNode.length > 0) {
range.setStart(lastNode[ 0 ], 0);
range.setEnd(lastNode[ 0 ], 0);
range.collapse(true);

sel.removeAllRanges();
sel.addRange(range);
}
Expand Down Expand Up @@ -2321,6 +2321,7 @@
// K.D. October 2nd, 2012 Bug #123366 Encoding the content before setting the value
// D.A. March 23, 2015 Bug #189760 Special characters (; , / ? : @ & = + $) are not encoded properly. Change encodeURI to encodeURIComponent
this.sourceWindow.val(encodeURIComponent(content));
this.workspace.blur();
},
destroy: function () {
/* Destroys the widget.
Expand Down

0 comments on commit 46c81d6

Please sign in to comment.