You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
릴리즈 2.3.0 이상
public getTextBySelectors(selectors: Array)
편집할 DOM selector들을 지정하여 text를 한번에 추출 할 수 있는 API입니다.
- 추출 가능 DOM: <div>, <td>, <p>, <span>
Params: selector, text
Name | Type |
| Description |
---|
selectors | Array | [ String ] | 편집할 DOM을 가져올 selector |
Return: text
Name | Type | Description |
---|
texts | Array | DOM에서 추출한 text Array |
Example:
texts = editor.getTextBySelectors(selectors);
체험하기
에디터의 문서모델(DOM)에 직접 접근하여 정보를 관리 할 수 있는 기능을 제공합니다.