Skip to main content

DOM Events

Event
handleUndoThis handler is responsible for undoing the previous action performed in the editor
handleRedoThe handleRedo handler allows you to redo an action that was previously undone
handleBoldWith the handleBold handler, you can apply or remove bold formatting to the selected text
handleItalicThe handleItalic handler enables you to apply or remove italic formatting to the selected text
handleUnderlineThis handler allows you to apply or remove underline formatting to the selected text
handleStrikeoutThe handleStrikeout handler enables you to apply or remove strikeout formatting to the selected text
handleSuperscriptWith the handleSuperscript handler, you can apply or remove superscript formatting to the selected text
handleSubscriptThe handleSubscript handler allows you to apply or remove subscript formatting to the selected text
handleFontFamilyThis handler is used to change the font family of the selected text
handleAlignThe handleAlign handler allows you to align the selected text to the left, center, or right
handleListWith the handleList handler, you can create bulleted or numbered lists
setFontColorThis handler is responsible for changing the font color of the selected text
highlightTextThe highlightText handler enables you to apply or remove highlighting to the selected text
setFontWith the setFont handler, you can change the font of the selected text
setSizeThis handler allows you to set the font size of the selected text
increaseFontSizeThe increaseFontSize handler increases the font size of the selected text
decreaseFontSizeThe decreaseFontSize handler decreases the font size of the selected text
getContentThis handler retrieves the content of the editor
setContentThe setContent handler sets the content of the editor
createTableWith the createTable handler, you can insert a table into the editor
setTitleThis handler sets the title of the editor
getContentStylesThe getContentStyles handler retrieves the styles applied to the content of the editor
setImageWith the setImage handler, you can insert an image into the editor
createHyperLinkThis handler allows you to create a hyperlink in the editor
setHorizontalLineThe setHorizontalLine handler inserts a horizontal line into the editor
setPaperMarginsThis handler sets the paper margins of the editor
getSelectedTextThe getSelectedText handler retrieves the currently selected text in the editor
insertElementWith the insertElement handler, you can insert a custom element into the editor