[ckeditor4] Setting custom accent color adds text to formatted field
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3322167. -->
Reported by: [sergiur](https://www.drupal.org/user/3543272)
Related to !199
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>On the latest dev version when using a custom accent color and I save a page that has a ckeditor formatted text field, the field gets gin markup added to the end of the field value on save, as text. Can't see this markup before saving, but after saving the page and edit again I can see it added into the field value. If I save again, it gets added a second time. </p>
<p>Removing the custom accent color fixes the issue, so it's something to do with the custom accent color.</p>
<p>This is the code it adds for example:</p>
<p><code>[data-gin-accent="custom"] { --gin-color-primary-rgb: 37, 147, 121; --gin-color-primary-hover: #0c7a60; --gin-color-primary-active: #006d53; --gin-bg-app-rgb: 248, 251, 250; --gin-bg-header: #deeeea; --gin-color-sticky-rgb: 237, 246, 244; } .gin--dark-mode[data-gin-accent="custom"], .gin--dark-mode [data-gin-accent="custom"] { --gin-color-primary-rgb: 178, 217, 208; --gin-color-primary-hover: #9ccec2; --gin-color-primary-active: #92c9bc; --gin-bg-header: #3a3f40; }</code></p>
<p>and here it is rendered: </p>
<p><img src="https://www.drupal.org/files/issues/2022-11-17/Screenshot%202022-11-17%20at%2012.34.09.png" alt="screenshot of error"></p>
> Related issue: [Issue #3320929](https://www.drupal.org/node/3320929)
issue