]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/lexical/core/LexicalEvents.ts
Lexical: Fixed strange paragraph formatting behaviour
[bookstack] / resources / js / wysiwyg / lexical / core / LexicalEvents.ts
index c70a906a08e897d369442625446278732eccc5b2..26cf25a800d583a6411c685e167e5b704b265948 100644 (file)
@@ -355,6 +355,7 @@ function onSelectionChange(
               lastNode instanceof ParagraphNode &&
               lastNode.getChildrenSize() === 0
             ) {
+              selection.format = lastNode.getTextFormat();
               selection.style = lastNode.getTextStyle();
             } else {
               selection.format = 0;