Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

릴리즈 2.3.0 이상

public getText(selector: String)

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

  • 추출 가능 DOM: <div>, <td>, <p>, <span>


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');



체험하기

에디터의 문서모델(DOM)에 직접 접근하여 정보를 관리 할 수 있는 기능을 제공합니다.


지원분야
성명
생년월일
현주소
연락처
Copyright
지원분야
성명
생년월일
현주소
연락처
Copyright



  • No labels