From db6ca6f905e4e6da2657ded91e9e601aa3c521d4 Mon Sep 17 00:00:00 2001 From: AzazelN28 Date: Wed, 27 Nov 2024 12:05:42 +0100 Subject: [PATCH] :bug: Fix wrong line-height value --- frontend/text-editor/src/editor/content/dom/Style.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/text-editor/src/editor/content/dom/Style.js b/frontend/text-editor/src/editor/content/dom/Style.js index 6405273faf..e19ff39f61 100644 --- a/frontend/text-editor/src/editor/content/dom/Style.js +++ b/frontend/text-editor/src/editor/content/dom/Style.js @@ -210,6 +210,8 @@ export function getStyleFromDeclaration(style, styleName, styleUnit) { const styleValueAsNumber = parseFloat(styleValue); if (styleName === "font-size") { return getStyleFontSize(styleValueAsNumber, styleValue); + } else if (styleName === "line-height") { + return styleValue } if (Number.isNaN(styleValueAsNumber)) { return styleValue;