From 5102cec82ec2f9be0dd328099d6849ac189c3c21 Mon Sep 17 00:00:00 2001 From: Jason Chen Date: Sat, 1 Sep 2018 21:20:47 -0700 Subject: [PATCH] expand table balance targets --- modules/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/table.js b/modules/table.js index 7eded863f4..4fde5dc745 100644 --- a/modules/table.js +++ b/modules/table.js @@ -129,7 +129,7 @@ class Table extends Module { listenBalanceCells() { this.quill.on(Quill.events.SCROLL_OPTIMIZE, mutations => { mutations.some(mutation => { - if (mutation.target.tagName === 'TABLE') { + if (['TD', 'TR', 'TBODY', 'TABLE'].includes(mutation.target.tagName)) { this.quill.once(Quill.events.TEXT_CHANGE, (delta, old, source) => { if (source !== Quill.sources.USER) return; this.balanceTables();