Status |
---|
colour | Yellow |
---|
title | 릴리즈 Release 2.3.0 이상or Above |
---|
|
public setTextBySelectors(datas: Array)
편집할 DOM selector들을 지정하여 text를 한번에 삽입 할 수 있는 API입니다.
...
API to insert text at once by designating DOM selectors to edit.
- Insertable DOM: <div>, <td>, <p>
Params: selector, text
Name | Type |
| Description |
---|
datas | Array | [ Object] - {
selector: String, text: String }
| 편집할 DOM을 가져올 selector와 Selector to load DOM to edit and text |
Example:
Code Block |
---|
|
window.editor.setTextBySelectors([{'#field', 'Filed Text'}, {'#name', 'Name Text'}, {'#birth', 'Birth day'}]); |
...
Experiencing
Include Page |
---|
| DEMOSEDEMO:DOM APIDEMO |
---|
| SEDEMO:DOM API |
---|
|