diff --git a/frontend/text-editor/src/editor/content/dom/Style.js b/frontend/text-editor/src/editor/content/dom/Style.js index 6405273fa..e19ff39f6 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;