Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Status
colourYellow
title릴리즈 Release 2.3.0 이상or Above

public getTextBySelectors(selectors: Array)

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

...

API to designate DOM selectors to edit and extract the corresponding text at once.

  • Extractable DOM: <div>, <td>, <p>, <span>


Params: selector, text

NameType
Description
selectorsArray

[ String ]

  • text: String
편집할 DOM을 가져올 selectorSelector to get DOM to edit


Return: text

NameTypeDescription
textsArray
DOM에서 추출한 text Array
Text Array to extracted from DOM


Example:

Code Block
languagejs
themeEmacs
texts = editor.getTextBySelectors(selectors);

...



Experiencing

Include Page
DEMOSEDEMO:DOM APIDEMO
SEDEMO:DOM API