Skip to content
Permalink
Browse files

fix: exception when styleNode does not have br

  • Loading branch information...
sohee-lee7 committed Jun 11, 2019
1 parent 1ebe045 commit 793c3ecbbee86b216453311a6d20a4c87de7d536
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/js/wwTableManager.js
@@ -282,8 +282,11 @@ class WwTableManager {
}

const brNode = styleNode.querySelector('br');
const {parentNode: tdNode, nodeName} = styleNode;
if (!brNode) {
return;
}

const {parentNode: tdNode, nodeName} = styleNode;
if (nodeName === 'CODE' && !brNode.previousSibling) {
// cursor is located in the start of text
// Before Enter : <code>|TEST</code>

0 comments on commit 793c3ec

Please sign in to comment.
You can’t perform that action at this time.