Skip to content

Commit

Permalink
isEdge: account for non text nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Aug 15, 2017
1 parent cfdcc38 commit 56bbbcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/modes/visual-editor/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function isEdge( { editor, reverse } ) {
return false;
}

if ( ! reverse && offset !== node.data.length ) {
if ( ! reverse && offset !== node.textContent.length ) {
return false;
}

Expand Down

0 comments on commit 56bbbcf

Please sign in to comment.