RELEASE 2.3.0 OR ABOVE
public getText(selector: String)
API to extract text by designating the DOM selector.
- Extractable DOM: <div>, <td>, <p>, <span>
Params: selector
Name | Type | Description |
---|---|---|
selector | string | Selector to get DOM to edit |
Return: text
Name | Type | Description |
---|---|---|
test | string | Text extracted from DOM |
Example:
let field = window.editor.getText('#field'); let name = window.editor.getText('#name'); let birth = window.editor.getText('#birth'); let address = window.editor.getText('#address'); let phone = window.editor.getText('#phone'); let copyright = window.editor.getText('#copyright');
Experiencing
The feature to directly access document model (DOM) of the Editor and manage the information is provided.
Applying Position | |
---|---|
Name | |
Date of Birth | |
Current Address | |
Contact | |
Copyright | |
Applying Position | |
---|---|
Name | |
Date of Birth | |
Current Address | |
Contact | |
Copyright |