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

« Previous Version 7 Next »

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


Properties

id 

  • String>

Element의 ID

type

  • String

Element의 Type

index

  • Number

현재 index

parent

  • Element

부모 API 모델

nextSibling

  • Element

부모 API 모델

previousSibling

  • Element

부모 API 모델

firstChild

  • Element

부모 API 모델

lastChild

  • Element

부모 API 모델

children

  • Element

부모 API 모델

siblings

  • Element

부모 API 모델

nextSiblings

  • Element

부모 API 모델

previousSiblings

  • Element

부모 API 모델

NameType설명
idStringElement의 ID
typeStringElement의 Type
indexNumber현재 index
parentElement부모 API 모델
nextSiblingElement다음 형제 API 모델
previousSiblingElement이전 형제 API 모델
firstChildElement첫번째 자식 API 모델
lastChildElement마지막 자식 API 모델
childrenElement[]자식 API 모델들 (배열)
siblingsElement[]형제 API 모델들 (배열)
nextSiblingsElement[]다음 형제 API 모델들 (배열)
previousSiblingsElement[]이전 형제 API 모델들 (배열)


Methods

closest(condition)

  • condition <Function> 검색 조건

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

var image = editor.getAPIModelById('id');
image.replace('<span>Image replace</span>');
NameParamReturn설명
closest{Function} conditionElement조건에 맞는 api 모델을 반환합니다.
setId{String} id
id를 수정합니다.
setStyle{String} cssText
스타일을 설정합니다.




  • No labels