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);