public setText(selector: String, text: String)

API to insert text by designating DOM selector to edit.


Params: selector, text

NameTypeDescription
selectorstringSelector to load DOM to edit
textStringText 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