Page tree
Skip to end of metadata
Go to start of metadata

SynapEditor provides APIModel for content editing using API.

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


Create APIModel using ID
var tableModel = editor.getAPIModelById('ID');
Create APIModel from current Selection
var paragraphs = editor.getAPIModels();	// Returns an Array
APIModel creation using Selector
var body = editor.getAPIModelBySelector('.se-contents')[0];

모델별 API

  • No labels