...
| Table of Contents | ||||||
|---|---|---|---|---|---|---|
|
Properties
id
- String><String>
Element의 ID
type
- String<String>
Element의 Type
index
- Number<Number>
현재 index
parent
- Element<Element>
부모 API 모델
nextSibling
- Element<Element>
다음 형제 API 모델
previousSibling
- Element<Element>
이전 형제 API 모델
firstChild
- Element<Element>
첫번째 자식 API 모델
lastChild
- Element<Element>
마지막 자식 API 모델
children
- Element<Element[]>
자식 API 모델들 (배열)
siblings
- Element<Element[]>
형제 API 모델들 (배열)
nextSiblings
- Element<Element[]>
다음 형제 API 모델들 (배열)
previousSiblings
- Element<Element[]>
이전 형제 API 모델들 (배열)
Methods
...
- condition <Function> 검색 조건
- Returns: <Element> API 모델 Element
조건에 맞는 API 모델을 반환합니다.
| Code Block | ||||
|---|---|---|---|---|
| ||||
var image = editor.getAPIModelById('id');
image.replace('<span>Image replace</span>'); |
...
...
setId(id)
- id <String> 모델에 설정할 ID 값
ID를 설정합니다.
| Code Block | ||||
|---|---|---|---|---|
| ||||
setStyle(cssText)
- cssText <String> HTML DOM상에서 style 속성에 들어간 문자열
스타일을 설정합니다.
| Code Block | ||||
|---|---|---|---|---|
| ||||