refactor: extracted RichEditorOptions

This commit is contained in:
jideguru
2021-06-03 12:03:20 +01:00
parent 4097c7c746
commit 0ba6803269
12 changed files with 262 additions and 140 deletions

View File

@@ -0,0 +1,41 @@
enum CommandName {
UNDO,
REDO,
FORECOLOR,
BACKCOLOR,
FONTNAME,
FONTSIZE,
BOLD,
ITALIC,
UNDERLINE,
SUBSCRIPT,
SUPERSCRIPT,
STRIKETHROUGH,
FORMATBLOCK, // passes value for below format
H1,
H2,
H3,
H4,
H5,
H6,
P,
PRE,
BR, // not settable (at least i don't know how)
BLOCKQUOTE,
REMOVEFORMAT,
JUSTIFYCENTER,
JUSTIFYFULL,
JUSTIFYLEFT,
JUSTIFYRIGHT,
INDENT,
OUTDENT,
INSERTUNORDEREDLIST,
INSERTORDEREDLIST,
INSERTHORIZONTALRULE,
INSERTHTML, // determines if the three command below are executable
INSERTLINK, // pseudo commands, there are no corresponding values for execCommand()
INSERTIMAGE,
INSERTCHECKBOX,
// pseudo commands for toggling grouped command views
EXPANDING_SEARCH_VIEWING,
}