[Bug]: editor.runCommand('gjs-get-inlined-html') returns undefined (preset-webpage)
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)
P.S) Just tested on newsletter, it also returns undefined..
- You're not using the latest version
- Webpage preset doesn't have
gjs-get-inlined-htmlcommand, but you can copy it from the newsletter preset if you need it - It works here https://grapesjs.com/demo-newsletter-editor.html
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.
Issue #1614
[Bug]: adding css variables as style manager property
trying to add css variable to style manager causing error: Uncaught TypeError: Cannot read property 'toUpperCase' of undefined fiddle Am i...
Issue #1589
[Bug] Cannot read property '_cash(some random numbers)' of undefined on newsletter demo.
I'm having some issue when I load some templates and modify. and it looks like grapesjs newsletter demo is also having this issue. I have c...
Issue #665
Custom component and save
Sorry, me again ! I'm trying to save my template with my new component "img-link" : But when I save my template using the gjs-get-inlined-h...
Issue #1062
gjs-get-inlined-html returns undefined instead of editor content
@artf Wonderful newsletter editor and it is very user-friendly. Great Job!!! In my POC application, I fetch the newsletter editor content a...
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.