Issue #1059💬 AnsweredOpened April 21, 2018by rohanreddyg0 reactions

Load html content from a file dynamically

Quick answerby artf

StoreManager api documentation is limited and looks like default load looks for a specific JSON structure with separate html, css as data. Because this is the right way of loading template data, but if this is the first time you load a template you can place all the HTML inside html key instead of components (by leavi...

Read full answer below ↓

Question

Hi, I need to load content from a html file from server onto editor after or while initializing editor. How this can be implemented? HTML will have regular html content i.e HTML tag, script tags, css links and body content which needs to be loaded into editor.

StoreManager api documentation is limited and looks like default load looks for a specific JSON structure with separate html, css as data.

Thanks in advance.

Answers (3)

artfApril 22, 2018

StoreManager api documentation is limited and looks like default load looks for a specific JSON structure with separate html, css as data. Because this is the right way of loading template data, but if this is the first time you load a template you can place all the HTML inside html key instead of...

suresh5December 10, 2018

> StoreManager api documentation is limited and looks like default load looks for a specific JSON structure with separate html, css as data.Because this is the right way of loading template data, but if this is the first time you load a template you can place all the HTML inside html key instead of...

artfDecember 12, 2018

@suresh5 can you please avoid making requests on closed issues...

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.