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 »

사이냅에디터에서는 API를 이용한 내용 편집을 위해 APIModel을 제공하고 있습니다.

APIModel은 getAPIModelById, getAPIModelsgetAPIModelsBySelector 메소드를 이용해서 생성할 수 있습니다.


Example:

ID를 이용한 APIModel 생성
var tableModel = editor.getAPIModelById('ID');
현재 Selection에 해당하는 APIModel 생성
var paragraphs = editor.getAPIModels();	// Array를 반환합니다.
Selector를 이용한 APIModel 생성
var body = editor.getAPIModelBySelector('.se-contents')[0];

모델별 API

  • No labels