Style cleaned on loading
Question
Hi,
when I load the html with the inline style previously saved by the editor the style is removed. How can I solve my problem?
Answers (3)
thank you
config.avoidInlineStyle is true by default, there are some rare cases where it might be useful to disable (eg. disabled in the mjml plugin to make it work properly) but for the common web pages we encourage to keep it as it is
@picozzo92 i believe from v15.08 inline styles are not supported anymore. Cheers!
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3832
BUG: The css classes are removed and the autogenerated ids for each html tags gets changed ( Example : ivj5m-2) after each reload
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link Not there De...
Issue #3116
[HELP WANTED] How to load css that can viewed in code viewer and also exported while saving
Hi :wave: I am trying to load some CSS within the editor as part of the theme, I am able to link stylesheets as part of loading but the pro...
Issue #2231
css issue in getCss
FYI: am using 0.15.3 i have loaded a html component into editor and saved for multiple times i noticed that how many times we load /edit an...
Issue #6606
BUG: Editor takes a long time to load (sometimes over 1 minute)
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Firefox Reproducible demo link https://gra...
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.