모든 편집용 Model의 부모 Class입니다.

Properties

id 

Element의 ID

type

Element의 Type

index

현재 index

parent

부모 API 모델

nextSibling

다음 형제 API 모델

previousSibling

이전 형제 API 모델

firstChild

첫번째 자식 API 모델

lastChild

마지막 자식 API 모델

children

자식 API 모델들 (배열)

siblings

형제 API 모델들 (배열)

nextSiblings

다음 형제 API 모델들 (배열)

previousSiblings

이전 형제 API 모델들 (배열)

Methods

closest(condition)

조건에 맞는 API 모델을 반환합니다.

var image = editor.getAPIModelById('id');
image.replace('<span>Image replace</span>');


NameParamReturn설명
closest{Function} conditionElement조건에 맞는 api 모델을 반환합니다.
setId{String} id
id를 수정합니다.
setStyle{String} cssText
스타일을 설정합니다.