From 1ba15e5d1002411b56d4b7c7a8c847553e829a58 Mon Sep 17 00:00:00 2001 From: Elena Torro Date: Wed, 3 Dec 2025 08:55:11 +0100 Subject: [PATCH] :bug: Do not merge fill styles --- .../text-editor/src/editor/controllers/SelectionController.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/text-editor/src/editor/controllers/SelectionController.js b/frontend/text-editor/src/editor/controllers/SelectionController.js index 6c6a001a48..7699f83077 100644 --- a/frontend/text-editor/src/editor/controllers/SelectionController.js +++ b/frontend/text-editor/src/editor/controllers/SelectionController.js @@ -238,7 +238,11 @@ export class SelectionController extends EventTarget { #applyStylesFromElementToCurrentStyle(element) { for (let index = 0; index < element.style.length; index++) { const styleName = element.style.item(index); + if (styleName === "--fills") { + continue; + } let styleValue = element.style.getPropertyValue(styleName); + if (styleName === "font-family") { styleValue = sanitizeFontFamily(styleValue); }