refactor: extracted RichEditorOptions
This commit is contained in:
41
lib/src/models/enum/command_name.dart
Normal file
41
lib/src/models/enum/command_name.dart
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user