Skip to content

Commit

Permalink
fix(DOM): Issue #754 is not corrected. Now wrapSelection('insertHtml'…
Browse files Browse the repository at this point in the history
…, embed, true) can insert '\n'
  • Loading branch information
JoelParke committed Oct 3, 2016
1 parent e29e463 commit 424ac59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DOM.js
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,8 @@ function($document, taDOM, $log){
_cnode.innerHTML.trim() === '') { // empty p element
continue;
}
/****************
* allow any text to be inserted...
if(( _cnode.nodeType === 3 &&
_cnode.nodeValue === '\ufeff'[0] &&
_cnode.nodeValue.trim() === '') // empty no-space space element
Expand All @@ -950,6 +952,7 @@ function($document, taDOM, $log){
_cnode.nodeValue.trim() === '') { // empty text node
continue;
}
*****************/
isInline = isInline && !BLOCKELEMENTS.test(_cnode.nodeName);
nodes.push(_cnode);
}
Expand Down

0 comments on commit 424ac59

Please sign in to comment.