diff options
author | bobzel <zzzman@gmail.com> | 2024-04-02 14:49:15 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-04-02 14:49:15 -0400 |
commit | ac58c8da5dc8ee5346bccd6da1f6883a7ce0d3d7 (patch) | |
tree | ec3830980c98c76cde0a0107789b6afb042f394e /src/client/views/global/globalScripts.ts | |
parent | efcfafdf9c3bd16c208c995d0d8ee1fa6ccae880 (diff) |
fixed highlight list type button
Diffstat (limited to 'src/client/views/global/globalScripts.ts')
-rw-r--r-- | src/client/views/global/globalScripts.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/global/globalScripts.ts b/src/client/views/global/globalScripts.ts index 497ab98d8..2a5732708 100644 --- a/src/client/views/global/globalScripts.ts +++ b/src/client/views/global/globalScripts.ts @@ -199,7 +199,7 @@ ScriptingGlobals.add(function toggleCharStyle(charStyle: attrname, checkResult?: (Doc.UserDoc().textAlign = where))}]); // prettier-ignore // prettier-ignore const listings:attrfuncs[] = (['bullet','decimal'] as attrname[]).map(list => - [ list, { checkResult: () => (editorView ? RichTextMenu.Instance?.getActiveListStyle() === list:false), + [ list, { checkResult: () => (editorView ? RichTextMenu.Instance?.listStyle === list:false), toggle: () => editorView?.state && RichTextMenu.Instance?.changeListType(list) }]); // prettier-ignore const attrs:attrfuncs[] = [ |