striven-editor

Maintained and contributed to an open source WYSIWYG editor as an internship project that made it to production and was adopted by the company I was working at.
git clone https://unitehenry.com/git/striven-editor.git
Log | Files | Refs | README | LICENSE

commit 26ab1e87285eebe4f37a5a098e1b496e4f0d07c4
parent 0287d985d6e4e895dd2f5bead712dc61920dbaa0
Author: unitehenry <unitehenry@gmail.com>
Date:   Thu,  7 Nov 2019 11:31:17 -0500

hot fix

Diffstat:
Msrc/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