Issue #449💬 AnsweredOpened October 25, 2017by alissonphp0 reactions

Can i load editor content dynamically?

快速解答by artf

If for content you mean html/css, probably you're looking for editor.setComponents('<div>...')

Read full answer below ↓

Question

I have a API rest that receives and supplies the contents of the editor items. The entire store created by the editor is saved: assets, components, css, ... Each item is accessible via route (eg editor / page / 4), when loading the route API returns to the content of the item, however when calling the action editor.storeManager.load (content), I can not load the content to the editor.

What would be the best way to work with this flow?

Thank you for your attention.

Answers (2)

artfOctober 25, 2017

If for content you mean html/css, probably you're looking for editor.setComponents('<div>...')

lock[bot]September 18, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.