public getText(selector: String)

편집할 DOM selector를 지정하여 text를 추출 할 수 있는 API입니다.


Params: selector

NameTypeDescription
selectorstring편집할 DOM을 가져올 selector


Return: text

NameTypeDescription
teststringDOM에서 추출한 text


Example:

let field = window.editor.getText('#field');
let name = window.editor.getText('#name');
let birth = window.editor.getText('#birth');
let address = window.editor.getText('#address');
let phone = window.editor.getText('#phone');
let copyright = window.editor.getText('#copyright');



체험하기