Issue #3383Opened April 2, 2021by KieronWiltshire0 reactions

Is it possible to include the style in the html?

Question

I'm currently using grapesjs to build email templates, however when I import HTML with the <style> tag already inside, before this is stored it split's the HTML and CSS up. When this is stored in my backend database, there is no <style> or <link> tag in the HTML, instead it's stored separately. Is there a way to prevent this and store a single compiled version of both, or at least is there a way to inject a style with the CSS before sending it to the server?

Answers (3)

artfApril 20, 20210 reactions

Yeah, at the moment the inline CSS is parsed for the CssComposer and removed from the DOM. This allows the editor to edit its styles.

ronaldohochJuly 28, 20220 reactions

One question about it.

How can ckeditor edit putting the span with inline styles and keep it after close and reopen the same template?

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.