commit 26ab1e87285eebe4f37a5a098e1b496e4f0d07c4 parent 0287d985d6e4e895dd2f5bead712dc61920dbaa0 Author: unitehenry <unitehenry@gmail.com> Date: Thu, 7 Nov 2019 11:31:17 -0500 hot fix Diffstat:
| M | src/striveneditor.js | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -492,7 +492,9 @@ export default class StrivenEditor { // disables all states this.options.toolbarOptions.forEach(opt => { - document.queryCommandState(opt) && this.executeCommand(opt); + if(typeof opt === 'string' && opt.includes('list')){ + document.queryCommandState(opt) && this.executeCommand(opt); + } }) // enable only active states