Search results

ExecCommand in RichTextEditor

In RichTextEditor, execCommand used to perform commands for the modification of content in editable area. The execCommand will perform the following commands.

commands Value [options]
bold Bolds the selected content in the RichTextEditor.
italic The selected text will be italics.
underline Underline the selected text in the RichTextEditor.
strikeThrough Apply single line strike through formatting for the selected text.
superscript Makes the selected text as superscript (higher).
subscript Makes the selected text as subscript (lower).
uppercase Change the case of selected text to upper in the content.
lowercase Change the case of selected text to lower in the content.
fontColor Apply the specified font color for the selected text.
fontName Apply the specified font name for the selected text.
fontSize Apply the specified font size for the selected text.
backColor Apply the specified background color the selected text.
justifyCenter Aligns the content with center margin.
justifyFull Aligns the content with left margin.
justifyLeft Aligns the content with left margin.
justifyRight Aligns the content with right margin.
undo Allows to undo the actions.
redo Allows to redo the actions
createLink Creates a hyperlink to a text or image to a specific location in the content.
formatBlock Adds HTML block element to the selected text.
heading Adds heading to the selected text.
indent Allows to increase the indent level of the content.
outdent Allows to decrease the indent level of the content.
insertHTML Inserts the html content to the current cursor position.
insertOrderedList Creates a new list item (numbered).
insertUnorderedList Creates a new list item (bulleted).
insertParagraph Inserts a paragraph to the selection or the current line.
removeFormat Removes all formatting styles (such as bold, italic, underline, color, superscript, subscript, and more) from currently selected text.
insertText Inserts text to the current cursor position.
insertImage Inserts image to the current cursor position.
insertHorizontalRule Inserts horizontal rule to the current cursor position.
insertBrOnReturn Inserts br tag to the current cursor position.