A generic base implementation for XML/HTML importers.
Converts and shows all children of a given element.
elements | DOMElement[] | All elements that should be converted into the container. |
containerId | String | The id of the target container node. |
Object | the preliminary container node |
Converts a single HTML element and creates a node in the current document.
Convert annotated text. You should call this method only for elements containing rich-text.
el | DOMElement | |
path | String[] | The target property where the extracted text (plus annotations) should be stored. |
options | Object | |
options.preserveWhitespace | Boolean | when true will preserve whitespace. Default: false. |
String | The converted text as plain-text |
Converts the given element as plain-text.
Tells the converter to insert a virutal custom text.
This is useful when during conversion a generated label needs to be inserted instead of real text.
String |
Generates an id. The generated id is unique with respect to all ids generated so far.
a | String | prefix |
String | the generated id |
Wraps the remaining (inline) elements of a node iterator into a default block node.
Converts an element into a default block level node.
Removes any leading and trailing whitespaces from the content within the given element. Attention: this is not yet implemented fully. Atm, trimming is only done on the first and last text node (if they exist).
$el | jQuery |
util/jQuery | an element with trimmed text |