From ca53b69dfb3fb28cfb5f3b48d2dd963015b5cae1 Mon Sep 17 00:00:00 2001 From: Kaz Wesley Date: Fri, 24 May 2024 14:27:18 -0700 Subject: [PATCH] Heading levels (#10078) Larger h1 to enable three levels of headings. Screenshot 2024-05-24 at 07 38 31 Fixes #10051. # Important Notes Refactored Lexical styling. --- app/gui2/src/components/PlainTextEditor.vue | 2 +- .../components/lexical/MarkdownEditorImpl.vue | 48 +++-------------- app/gui2/src/components/lexical/index.ts | 34 +++++++++--- app/gui2/src/components/lexical/theme.css | 52 +++++++++++++++++++ 4 files changed, 87 insertions(+), 49 deletions(-) create mode 100644 app/gui2/src/components/lexical/theme.css diff --git a/app/gui2/src/components/PlainTextEditor.vue b/app/gui2/src/components/PlainTextEditor.vue index a8da56bf705..3395d58e5f4 100644 --- a/app/gui2/src/components/PlainTextEditor.vue +++ b/app/gui2/src/components/PlainTextEditor.vue @@ -22,7 +22,7 @@ const textSync: LexicalPlugin = { }, } -useLexical(contentElement, 'PlainTextEditor', [plainText, textSync]) +useLexical(contentElement, 'PlainTextEditor', {}, [plainText, textSync])