You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
릴리즈 2.3.0 이상
public setText(selector: String, text: String)
API to insert text by designating DOM selector to edit.
- Insertable DOM: <div>, <td>, <p>
Params: selector, text
Name | Type | Description |
---|
selector | string | Selector to load DOM to edit |
text | String | Text to insert |
Example:
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
에디터의 문서모델(DOM)에 직접 접근하여 정보를 관리 할 수 있는 기능을 제공합니다.