How we can save HTML
Question
How we can save HTML without using editor.getHtml() and replace function. As, when we are using this in image upload then the existing video element html are removed.
Please help us to do save image and video data dynamically using backbone or some other solution.
Answers (3)
You can create your own storage to handle whole data in the editor (html, css, assets etc)
HTML part only contains links of assets (image, video etc). If you want to get uploaded data you should override uploadFile method of AssetsManager
Hi @ateshuseyin,
Thanks for the message.
I don't know how to create our own storage.Please elaborate how to do that as i am in the middle of the this tasks and not able to go further.
editor.replace(); refresh the complete html of browser due to that video element is not working proparly as all the html of video is removed.
Please help us to resolve this.
@Deepak813 this is highly discussed argument, so just make a search in issues (eg. #597)
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1942
HTML conditional comments could not be loaded while we edit the template
While editing the template, conditional comment removed by auto rendering but works when we try to import and save
Issue #898
editor.getHtml() outside the iframe of grapesjs.
How should I get the getHtml() outside the grapesjs editor. I have a save button outside the iframe of editor. I am not getting the current...
Issue #1090
How to remove toolbar icons
Hi artf, Please let me know how we can remove the toolbar icons like when user click on image element then I don't want delete icon or othe...
Issue #1061
How we can show countdown traits
Hi artf, Please let us know how we get the countdown elements in edit mode means when we set the template html using editor.setComponents(t...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.