Issue #1633💬 AnsweredOpened December 5, 2018by SeongwoonHong0 reactions

Editor.runCommand('gjs-get-inlined-html') returns undefined (preset-webpage)

快速解答by SeongwoonHong

P.S) Just tested on newsletter, it also returns undefined..

Read full answer below ↓

Question

Hi, Artur

I'm using grapesjs-preset-webpage v0.1.10, grapesjs v0.14.29

I'm trying to save templates with inline css rather than having classes. but editor.runCommand('gjs-get-inlined-html') returns undefined. I've read your comments regarding this on other issue tickets but you said it's for newsletter.

is it not available for preset webpage..? is there any way to save template with inline css instead of classes?

Thank you!

Answers (3)

SeongwoonHongDecember 6, 2018

P.S) Just tested on newsletter, it also returns undefined..

artfDecember 7, 2018
  1. You're not using the latest version
  2. Webpage preset doesn't have gjs-get-inlined-html command, but you can copy it from the newsletter preset if you need it
  3. It works here https://grapesjs.com/demo-newsletter-editor.html
lock[bot]December 7, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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.