Status |
---|
colour | Yellow |
---|
title | 릴리즈 Release 2.3.0 이상or Above |
---|
|
public getText(selector: String)
편집할 DOM selector를 지정하여 text를 추출 할 수 있는 API입니다.
...
API to extract text by designating the DOM selector.
- Extractable DOM: <div>, <td>, <p>, <span>
Params: selector
Name | Type | Description |
---|
selector | string | 편집할 DOM을 가져올 selectorSelector to get DOM to edit |
Return: text
Name | Type | Description |
---|
test | string | DOM에서 추출한 textText extracted from DOM |
Example:
Code Block |
---|
|
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
Include Page |
---|
| DEMOSEDEMO:DOM APIDEMO |
---|
| SEDEMO:DOM API |
---|
|