From 40233e3316da32436cdc0d3a598a95a52e357a27 Mon Sep 17 00:00:00 2001 From: Aitor Moreno Date: Wed, 25 Feb 2026 12:47:07 +0100 Subject: [PATCH] :bug: Fix text alignment options --- .../text-editor/src/editor/controllers/SelectionController.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/text-editor/src/editor/controllers/SelectionController.js b/frontend/text-editor/src/editor/controllers/SelectionController.js index 683a887203..ba06969893 100644 --- a/frontend/text-editor/src/editor/controllers/SelectionController.js +++ b/frontend/text-editor/src/editor/controllers/SelectionController.js @@ -1958,6 +1958,8 @@ export class SelectionController extends EventTarget { this.startOffset === this.endOffset && this.endOffset === endNode.nodeValue?.length ) { + const paragraph = this.startParagraph; + setParagraphStyles(paragraph, newStyles); const newTextSpan = createVoidTextSpan(newStyles); this.endTextSpan.after(newTextSpan); this.setSelection(newTextSpan.firstChild, 0, newTextSpan.firstChild, 0);