Skip to content

Commit

Permalink
fix: the <img /> tag is not considered when checking line breaks (fix #2
Browse files Browse the repository at this point in the history
) (#3)
  • Loading branch information
seonim-ryu committed Feb 5, 2020
1 parent f1b89e9 commit c3af6a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libs/squire/build/squire-raw.js
Original file line number Diff line number Diff line change
Expand Up @@ -2169,7 +2169,7 @@ var removeEmptyInlines = function removeEmptyInlines ( node ) {

var notWSTextNode = function ( node ) {
return node.nodeType === ELEMENT_NODE ?
node.nodeName === 'BR' :
node.nodeName === 'BR' || node.nodeName === 'IMG' :
notWS.test( node.data );
};
var isLineBreak = function ( br, isLBIfEmptyBlock ) {
Expand Down

0 comments on commit c3af6a2

Please sign in to comment.