Issue #1059Opened April 21, 2018by rohanreddyg0 reactions

[Question]: Load html content from a file dynamically

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, 20180 reactions

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 leaving it empty) and the editor will use it

suresh5December 10, 20180 reactions

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 leaving it empty) and the editor will use it

can you give me simple example with basic html in json reponse ?

artfDecember 12, 20180 reactions

@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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.