Setka Post Editor initialization (JavaScript)
Terms and Definitions
Editor integration steps
1. Initializing the editor
2. Add the company styles and scripts to the post view page
Getting post's JSON
Getting assets (images, layouts, symbols, themes)
Getting a current post's style
Getting a current post's grid
3. Saving the HTML code to the database and loading it back to the editor
Setting a post's content
How to get the content from the editor for saving it to the database
How to open the previously saved post in the editor
4. Working with images
Loading images
Deleting images
Editing images
Launching the editor with a set of images
Getting images from the panel
Integration with image storages


Integration description
Additional initialization parameters
Setting post's style
Setting post's grid
Setting indents for the Setka Editor header
Tracking changes in the editor
Getting the editor's status
Getting editor's state
Getting editor's configuration
Launching the editor inside a scrollable container
Adding your own styles and scripts into the editor preview
Working with the editor functions if requests to external CDNs are not possible
More about custom integration:
PreviousReceiving style updates from the Style Manager and new editor versionsNextIntegration with Style Manager (API v1, previous version)
Last updated
Was this helpful?