Issue #1033Opened April 12, 2018by nojacko0 reactions

[BUG]: When IDs are used, it's not possible to update or remove a style

Question

Steps to reproduce

  1. https://jsfiddle.net/1cjjr02p/
  2. Click the text in editor, change background colour.
  3. Export CSS. You'll see both new and original colours exist in an order that prevents the new colour being used.
/* CSS: Output (minus some irrelevant bits) */
#c318{
  background-color:#000000;             /* New colour **/
}
#c318{
  background-color:rgb(152, 77, 77);     /* Original colour **/
}

/* CSS: Expected */
#c318{
  background-color: #000000;     /* New colour **/
}

3.. Using same jsfilddle, it's not possible to remove CSS attribute.

This is similar to #552 #986 but the issue is only present when IDs are used. Classes are cool.

Answers (3)

nojackoApril 13, 20180 reactions

To elaborate a little, it seems to be when you apply styles to a box it adds the ID. When you export that and reload it to Grapes the problem happens.

artfApril 14, 20180 reactions

Related to #932 Use avoidInlineStyle: true

lock[bot]September 17, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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.