Constructor Summary
Public Constructor | ||
public |
constructor(options: *, parentNode: *, rootNode: *, preservePasteMarker: *, tagName: *, attributes: {}) |
Member Summary
Public Members | ||
public |
attributes: * |
|
public |
children: * |
|
public |
options: * |
|
public |
|
|
public |
|
|
public |
parentNode: * |
|
public |
pasteLevels: * |
|
public |
|
|
public |
|
|
public |
|
|
public |
rootNode: * |
|
public |
tagName: * |
Method Summary
Public Methods | ||
public |
addChildNode(node: *) |
|
public |
addChildNodeAtIndex(index: *, node: *) |
|
public |
addChildNodeFromTag(tagName: *, attributes: *): * |
|
public |
addText(text: *) |
|
public |
checkIfNodeIsJustStringAndExtractString(node: *): * |
|
public |
childrenToHtml(): * |
|
public |
cleanAttributes(): * |
|
public |
cleanTagName(): * |
|
public |
getBlockNodeForNode(node: *): * |
|
public |
getClosestParentWithTagName(tagName: *): * |
|
public |
|
|
public |
|
|
public |
|
|
public |
getPasteLevel(): * |
|
public |
getPasteMarkerLevel(): * |
|
public |
|
|
public |
insertNodeAtPasteMarker(node: *) |
|
public |
isInlineTag(): * |
|
public |
|
|
public |
isRootNode(): * |
|
public |
Special nodes are nodes like the paste-marker. |
|
public |
makeChildNode(tagName: *, attributes: *): * |
|
public |
makeEndTag(): string |
|
public |
|
|
public |
movePasteMarkerTo(node: *, index: *) |
|
public |
setPasteMarkerNode(node: *) |
|
public |
shouldRenderTag(): * |
|
public |
|
|
public |
splitAfterChildIndex(index: *) |
|
public |
|
|
public |
|
|
public |
|
|
public |
toHtml(): * |
|
public |
toString(): * |
|
public |
transformTagName(): * |
Public Constructors
public constructor(options: *, parentNode: *, rootNode: *, preservePasteMarker: *, tagName: *, attributes: {}) source
Params:
Name | Type | Attribute | Description |
options | * | ||
parentNode | * | ||
rootNode | * | ||
preservePasteMarker | * | ||
tagName | * | ||
attributes | {} |
|
Public Members
public attributes: * source
public children: * source
public options: * source
public originalAttributes: * source
public originalTagName: * source
public parentNode: * source
public pasteLevels: * source
public pasteMarkerNode: * source
public preservePasteMarker: * source
public rootNode: * source
public tagName: * source
Public Methods
public addChildNode(node: *) source
Params:
Name | Type | Attribute | Description |
node | * |
public addChildNodeAtIndex(index: *, node: *) source
Params:
Name | Type | Attribute | Description |
index | * | ||
node | * |
public addChildNodeFromTag(tagName: *, attributes: *): * source
Params:
Name | Type | Attribute | Description |
tagName | * | ||
attributes | * |
Return:
* |
public addText(text: *) source
Params:
Name | Type | Attribute | Description |
text | * |
public checkIfNodeIsJustStringAndExtractString(node: *): * source
Params:
Name | Type | Attribute | Description |
node | * |
Return:
* |
public getClosestParentWithTagName(tagName: *): * source
Params:
Name | Type | Attribute | Description |
tagName | * |
Return:
* |
public insertNodeAtPasteMarker(node: *) source
Params:
Name | Type | Attribute | Description |
node | * |
public isSpecialNode(): boolean source
Special nodes are nodes like the paste-marker. If the cleaner is configured for it, these nodes should not be cleaned or altered in any way.
Return:
boolean | if true, the current node is a special node, as such, any attributes is legal and any tagname is legal. |
public makeChildNode(tagName: *, attributes: *): * source
Params:
Name | Type | Attribute | Description |
tagName | * | ||
attributes | * |
Return:
* |
public movePasteMarkerTo(node: *, index: *) source
Params:
Name | Type | Attribute | Description |
node | * | ||
index | * |
public setPasteMarkerNode(node: *) source
Params:
Name | Type | Attribute | Description |
node | * |
public splitAfterChildIndex(index: *) source
Params:
Name | Type | Attribute | Description |
index | * |