From 520a87801d59d6c7fadd050a238f6ec02bd5d033 Mon Sep 17 00:00:00 2001
From: rhenck <richard.henck@iqb.hu-berlin.de>
Date: Tue, 16 Nov 2021 22:38:02 +0100
Subject: [PATCH] [editor] Change TextEditor extension default font size to not
 be null

This looked bad having a null value in the DOM.
16 is the default font size of the app right now.
---
 projects/editor/src/app/text-editor/font-size-extension.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/projects/editor/src/app/text-editor/font-size-extension.ts b/projects/editor/src/app/text-editor/font-size-extension.ts
index c46088d7c..723764659 100644
--- a/projects/editor/src/app/text-editor/font-size-extension.ts
+++ b/projects/editor/src/app/text-editor/font-size-extension.ts
@@ -13,7 +13,7 @@ export const fontSizeExtension = TextStyle.extend({
   addAttributes() {
     return {
       fontSize: {
-        default: null,
+        default: 16,
         parseHTML: element => Number(element.style.fontSize.slice(0, -2)),
         renderHTML: attributes => ({
           style: `font-size: ${attributes.fontSize}px`
-- 
GitLab