Issue #382šŸ’¬ AnsweredOpened October 5, 2017by mekamleshk0 reactions

Store the html and inline css in Editor.Store()

Quick answerby sonnylloyd

@mekamleshk editor.store() function gets the html, components, css, html and styles and passes it to storage:store event and you can access it like you have above im sorry if i have miss understood what your asking but it looks like your trying to add a save button the save button the store event you can use grapejs's...

Read full answer below ↓

Question

I am trying to store the html and inline css , can you please in how to pass it to editor.store() function. @artf

Answers (3)

sonnylloyd• October 5, 2017

@mekamleshk editor.store() function gets the html, components, css, html and styles and passes it to storage:store event and you can access it like you have above im sorry if i have miss understood what your asking but it looks like your trying to add a save button the save button the store event y...

mekamleshk• October 5, 2017

Please recheck my code i have updated it. @sonnylloyd @artf I want to store inline html

var html = editor.runCommand('gjs-get-inlined-html');

into mysql database using editor.store() function

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.