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 2 Current »

SynapEditor provides APIModel for content editing using API.

APIModel can be created using getAPIModelById, getAPIModels, and getAPIModelsBySelector methods.


Example:

Create APIModel using ID
var tableModel = editor.getAPIModelById('ID');
Create APIModel from current Selection
var paragraphs = editor.getAPIModels();	// Array를 반환합니다.
APIModel creation using Selector
var body = editor.getAPIModelBySelector('.se-contents')[0];

모델별 API

  • No labels