Status |
---|
colour | Yellow |
---|
title | 릴리즈 Release 2.3.0 이상or Above |
---|
|
public setText(selector: String, text: String)
편집할 DOM selector를 지정하여 text를 삽입 할 수 있는 API입니다.
...
API to insert text by designating DOM selector to edit.
- Insertable DOM: <div>, <td>, <p>
Params: selector, text
Name | Type | Description |
---|
selector | string | 편집할 DOM을 가져올 selectorSelector to load DOM to edit |
text | String | 삽입할 textText to insert |
Example:
Code Block |
---|
|
window.editor.setText('#field', 'Filed Text');
window.editor.setText('#name', 'Name Text');
window.editor.setText('#birth', 'Birth day');
window.editor.setText('#address', 'Address');
window.editor.setText('#phone', 'Phone number');
window.editor.setText('#copyright', 'Copyright'); |
...
Experiencing
Include Page |
---|
| DEMOSEDEMO:DOM APIDEMO |
---|
| SEDEMO:DOM API |
---|
|