Issue #2111💬 AnsweredOpened July 2, 2019by logeshkrishna00 reactions

Issue on getting html and css while editing

快速解答by artf

I think you're looking for getHtml and getCss

Read full answer below ↓

Question

Hi, Hope you all have a good day. I'm looking on edit html function. In that, I changed the view of edit window like export modal. (ie, Separate window for Html and CSS). I can edit the content. I need to get the content (html & CSS) which is in modal window while I click the save button. Now I used $editor.view.el.outerText. It gives the content for minimum amount of CSS. If I edit the large block, the outerText couldn't return the full CSS. Any other way to get modal html & CSS while saving?

edit

Answers (1)

artfJuly 12, 2019

I think you're looking for getHtml and getCss

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.