Issue #1754✓ SolvedOpened January 25, 2019by hpruvot2 reactions

Problem of styling with ckeditor(4)

Quick answerby hpruvot2

@artf you first thought was the right one ! I still double checked my code and it turned out that someone had changed my code and was indeed loading the HTML and not the JSON anymore... ¯\(ツ)/¯ So sorry for this loss of time...

Read full answer below ↓

Question

Hello @artf and all ! Thanks again for the amazing job ! I tried to implement ckeditor with grapesjs and it seems to work pretty much correctly but today I found something weird. I tried to screenshot this, let me know if it's not clear...I select a text in white, it styles the span element, all fine.I save my work, I reload the pageThe white style has gone, hasn't been saved. And I can't change the color anymore (but bold works). The <span style="color:#ffffff;">HELLO</span> has turned into <span data-gjs-type="text" data-highlightable="1" id="iiklo" class="ckeeditable ckeeditableinline ckec...

Answers (3)

👍 Most helpfulhpruvotJanuary 29, 2019

@artf you first thought was the right one ! I still double checked my code and it turned out that someone had changed my code and was indeed loading the HTML and not the JSON anymore... ¯_(ツ)_/¯ So sorry for this loss of time...

hpruvotJanuary 28, 2019

Hi @artf ! I'm storing and loading JSON though, to be able to re edit my templates after saving them, and it works just fine for the rest of my components... :/

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.