commit 4637e6bd0d2072a6d62c54ba5f3f64f5cff78f53
parent 121d5834cd2764df38f47eb5f46fbdd93a57d7f5
Author: unitehenry <unitehenry@gmail.com>
Date: Tue, 12 Nov 2019 09:38:12 -0500
list execute commands
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/package.json b/package.json
@@ -1,7 +1,7 @@
{
"name": "@striven-erp/striven-editor",
"private": false,
- "version": "2.5.5",
+ "version": "2.5.6",
"description": "The lightweight zero-dependency Striven WYSIWYG editor.",
"main": "./dist",
"scripts": {
diff --git a/src/striveneditor.js b/src/striveneditor.js
@@ -505,8 +505,8 @@ export default class StrivenEditor {
// disables all states
this.options.toolbarOptions.forEach(opt => {
if (typeof opt === 'string') {
- if (document.queryCommandState('insertUnorderedList')) { return false };
- if (document.queryCommandState('insertOrderedList')) { return false };
+ if (document.queryCommandState('insertUnorderedList') && opt === 'insertUnorderedList') { return false };
+ if (document.queryCommandState('insertOrderedList') && opt === 'insertOrderedList') { return false };
document.queryCommandState(opt) && this.executeCommand(opt);
}