Skip to content

Commit

Permalink
Merge pull request #2102 from IgniteUI/valadzhov/fixing-syntactic-errors
Browse files Browse the repository at this point in the history
Removing whitespaces.
  • Loading branch information
Lipata authored Dec 3, 2020
2 parents 46c81d6 + 7b1f26d commit 1e37b7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/modules/infragistics.ui.htmleditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@
sel = this._selectionWrapperSaved._getSelection(),
range = this._selectionWrapperSaved._getRange();

// Add   to execute the initial commands on it
// Add   to execute the initial commands on it
lastNode.html(" ");

// Set the selection to the dummy element
Expand All @@ -1754,15 +1754,15 @@
sel = this._selectionWrapperSaved._getSelection(),
range = this._selectionWrapperSaved._getRange();

// Remove the dummy text and add <br> to make the element selectable
// 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

0 comments on commit 1e37b7e

Please sign in to comment.