@syncfusion/ej2-richtexteditor
Version:
Essential JS 2 RichTextEditor component
199 lines (197 loc) • 4.21 kB
JavaScript
/**
* @hidden
*/
export var executeGroup = {
'bold': {
command: 'Style',
subCommand: 'Bold',
value: 'strong'
},
'italic': {
command: 'Style',
subCommand: 'Italic',
value: 'em'
},
'underline': {
command: 'Style',
subCommand: 'Underline',
value: 'span'
},
'strikeThrough': {
command: 'Style',
subCommand: 'StrikeThrough',
value: 'span'
},
'insertCode': {
command: 'Formats',
subCommand: 'Pre',
value: 'pre'
},
'superscript': {
command: 'Effects',
subCommand: 'SuperScript',
value: 'sup'
},
'subscript': {
command: 'Effects',
subCommand: 'SubScript',
value: 'sub'
},
'uppercase': {
command: 'Casing',
subCommand: 'UpperCase'
},
'lowercase': {
command: 'Casing',
subCommand: 'LowerCase'
},
'fontColor': {
command: 'font',
subCommand: 'fontcolor',
value: '#ff0000'
},
'fontName': {
command: 'font',
subCommand: 'fontname',
value: 'Segoe UI'
},
'fontSize': {
command: 'font',
subCommand: 'fontsize',
value: '10pt'
},
'backColor': {
command: 'font',
subCommand: 'backgroundcolor',
value: '#ffff00'
},
'justifyCenter': {
command: 'Alignments',
subCommand: 'JustifyCenter'
},
'justifyFull': {
command: 'Alignments',
subCommand: 'JustifyFull'
},
'justifyLeft': {
command: 'Alignments',
subCommand: 'JustifyLeft'
},
'justifyRight': {
command: 'Alignments',
subCommand: 'JustifyRight'
},
'undo': {
command: 'Actions',
subCommand: 'Undo'
},
'redo': {
command: 'Actions',
subCommand: 'Redo'
},
'createLink': {
command: 'Links',
subCommand: 'createLink'
},
'editLink': {
command: 'Links',
subCommand: 'createLink'
},
'createImage': {
command: 'Images',
subCommand: 'Images'
},
'formatBlock': {
command: 'Formats',
value: 'P'
},
'heading': {
command: 'Formats',
value: 'H1'
},
'indent': {
command: 'Indents',
subCommand: 'Indent'
},
'outdent': {
command: 'Indents',
subCommand: 'Outdent'
},
'insertHTML': {
command: 'InsertHTML',
subCommand: 'InsertHTML',
value: ''
},
'insertText': {
command: 'InsertText',
subCommand: 'InsertText',
value: ''
},
'insertHorizontalRule': {
command: 'InsertHTML',
subCommand: 'InsertHTML',
value: '<hr/>'
},
'insertImage': {
command: 'Images',
subCommand: 'Image'
},
'insertAudio': {
command: 'Audios',
subCommand: 'Audio'
},
'insertVideo': {
command: 'Videos',
subCommand: 'Video'
},
'editImage': {
command: 'Images',
subCommand: 'Image'
},
'insertTable': {
command: 'Table',
subCommand: 'CreateTable'
},
'insertBrOnReturn': {
command: 'InsertHTML',
subCommand: 'InsertHTML',
value: '<br/>'
},
'insertOrderedList': {
command: 'Lists',
value: 'OL'
},
'insertUnorderedList': {
command: 'Lists',
value: 'UL'
},
'insertParagraph': {
command: 'Formats',
value: 'P'
},
'removeFormat': {
command: 'Clear',
subCommand: 'ClearFormat'
},
'copyFormatPainter': {
command: 'FormatPainter',
value: 'format-copy'
},
'applyFormatPainter': {
command: 'FormatPainter',
value: 'format-paste'
},
'escapeFormatPainter': {
command: 'FormatPainter',
value: 'escape'
},
'InlineCode': {
command: 'Style',
subCommand: 'inlinecode',
value: 'inlinecode'
},
'insertCodeBlock': {
command: 'CodeBlock',
subCommand: 'CodeBlock'
}
};