Constructor
new EMLText211()
- Source:
Extends
Methods
getParentEML() → {EML211|false}
Climbs up the model heirarchy until it finds the EML model
- Source:
Returns:
- Returns the EML 211 Model or false if not found
-
Type
-
EML211
|
false
nodeNameMap()
Maps the lower-case EML node names (valid in HTML DOM) to the camel-cased EML node names (valid in EML).
Used during parse() and serialize()
- Source:
setText(text)
function setText
Parameters:
Name |
Type |
Description |
text |
string
|
The text, usually taken directly from an HTML textarea
value, to parse and set on this model |
- Source:
toString() → {string}
Returns the EML Text paragraphs as a string, with each paragraph on a new line.
- Source:
Returns:
-
Type
-
string
updateDOM()
Makes a copy of the original XML DOM and updates it with the new values from the model.
- Source: