Issue #605πŸ’¬ AnsweredOpened December 4, 2017by Deepak8130 reactions

How we can save HTML

Quick answerby ateshuseyin

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

Read full answer below ↓

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)

ateshuseyinβ€’ December 5, 2017

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

Deepak813β€’ December 6, 2017

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.

artfβ€’ December 8, 2017

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

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.