Issue #1754Opened January 25, 2019by hpruvot2 reactions

[Bug] problem of styling with ckeditor(4)

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. ezgif com-video-to-gif

  • I save my work, I reload the page

  • The 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="cke_editable cke_editable_inline cke_contents_ltr cke_show_borders" contenteditable="false" spellcheck="false">HELLO</span>

ezgif com-video-to-gif 1

Thanks a lot

Answers (3)

hpruvotJanuary 29, 20192 reactions

@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, 20190 reactions

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.