Search results

ExecCommand in RichTextEditor

In RichTextEditor, execCommand used to perform command for the modification of content in editable area.

The execCommand will perform the following commands.

Commands Description
bold Bold 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 Align the content with center margin.
justifyFull Align the content with justify margin.
justifyLeft Align the content with left margin.
justifyRight Align the content with right margin.
undo Allows to undo 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 Add heading to the selected text.
indent Allows to increase the indent level of the content.
insertHTML Insert the html content to the current cursor position.
insertOrderedList Create a new list item(numbered).
insertUnorderedList Create a new list item(bulleted).
insertParagraph Inserts a paragraph to the selection or the current line.
outdent Allows to decrease the indent level of the content.
redo Allows to redo the actions
removeFormat remove all formatting styles (such as bold, italic, underline, color, superscript, subscript, and more) from currently selected text.
insertText Insert text to the current cursor position.
insertImage Insert an image to the current cursor position.
insertHorizontalRule Insert horizontal rule to the current cursor position.
insertBrOnReturn Insert <br> tag to the current cursor position.