EditorUtilsPremium
Represents a wrapping namespace for the utility functions, nodes
, and marks
objects of the Editor.
Name | Type | Default | Description |
---|---|---|---|
alignBlocks |
|
Aligns the block elements in the selection. | |
applyInlineStyle |
|
Wraps the selection in a | |
applyLink |
|
Applies the link mark. | |
canIndentList |
|
Checks if any of the | |
canInsert |
|
Checks if a node can be inserted in the current selection. | |
canOutdentList |
|
Checks if any of the | |
convertMsLists |
|
Converts the MS Word lists into HTML lists. | |
createDocument |
|
Creates an Editor document from HTML content. | |
createTable |
|
Creates a table. jsx
| |
formatBlockElements |
|
Formats the paragraph and heading nodes in the selection. | |
getBlockFormats |
|
Returns the paragraph and heading nodes in the selection. | |
getHtml |
|
Gets the HTML from the | |
getInlineStyles |
| ||
getMark |
|
Returns a mark of the specified type from the nodes in selection. | |
getShortcuts |
|
A function which returns the mapped @params—An object which holds specific types of nodes and tool settings that are used by the default | |
hasMark |
|
Checks if according to the specified | |
hasNode |
|
Checks if the selection contains a specific type of node. | |
imageResizeKey |
|
The | |
ImageResizeOptions |
|
The image resizing plugin options. | |
imageResizing |
|
Creates a plugin which adds image resizing functionality. | |
indentBlocks |
|
Indents the block elements in the selection. | |
indentHtml |
|
Adds new lines after block elements and hard breaks. | |
insertNode |
|
Inserts a node in the selection. | |
isAligned |
|
Checks if any of the block elements in the selection is aligned. | |
isIndented |
|
Checks if any of the block elements in the selection is indented. | |
marks |
|
Represents the | |
nodes |
|
Represents the | |
pasteCleanup |
|
A function for sanitizing the content on paste (see example). | |
propsKey |
|
The | |
removeAttribute |
|
A function that will remove a DOM attribute from the pasted content (see example). | |
removeComments |
|
Removes the comments from the HTML. jsx
| |
removeTag |
|
Removes the specified tag from the HTML and keeps its child nodes. jsx
| |
replaceImageSourcesFromRtf |
|
If the input | |
sanitize |
|
Removes the invalid HTML. jsx
| |
sanitizeClassAttr |
|
A function for sanitizing the CSS classes of the pasted from MS Word content (see example).
The function will remove any class attribute which value starts with | |
sanitizeStyleAttr |
|
A function for sanitizing the style attributes of the pasted from MS Word content (see example).
The function will loop through all styles and will remove those that are invalid.
For example | |
setHtml |
|
Sets the HTML to the | |
Shortcuts |
|
Represents the | |
tableResizing |
|
Returns a collection of plugins that adds table resizing functionality. | |
textHighlight |
|
Creates a plugin which highlights the matches of Find and Replace dialog. | |
toggleInlineFormat |
|
Toggles the inline element formatting according to the | |
toggleList |
|
Toggles a list of the specified type. |