Issue #4503๐Ÿ’ฌ AnsweredOpened Aug 5, 2022by gustavohleal0 reactions

Missing inline styles used by CKEditor when adding raw html components

Quick answerby shkhalid

+1

Read full answer below โ†“

Question

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chromium v96 Reproducible demo link https://grapesjs.com/demo-newsletter-editor.html Describe the bug How to reproduce the bug?Open the developer tools at the console tabRun the code belowSelect the text addedEdit something with CKEditorSelect another component What is the expected behavior? Expected to add inline styles from the spans inside the text component so that the CKEditor understand the text-styling and keep them when opened. What is the current behavior? Adding the raw HTML by editor.ad...

Answers (4)

shkhalidโ€ข Mar 8, 2023

+1

pety-dcโ€ข Apr 6, 2023

Hey I've been having similar issues. I think it's quite serious as both newsletter and mjml demo are affected. (Both use CKeditor as RTE) When I import a content that has a text (mj-text) that has styled elements (span) the imported content gets parsed and the styling elements are recognized as ind...

raymondmakzโ€ข Apr 14, 2023

ckeditor output: <div>some rich text from <span style="color:blue">ckeditor</span></div> after parsing into editor, become like: <div data-gjs-type="text">some rich text from <span style="color:blue" data-gjs-type="default">ckeditor</span></div> Basically every dom become components. Maybe give a c...

GJSBlockโ€ข May 17, 2026

Thanks for reporting this, @gustavohleal. Great suggestion about Missing inline styles used by CKEditor when adding raw html components! While this specific feature isn't yet in the core API, there are several ways to achieve similar behavior. Using the event system: Alternative approaches: Listen...

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.