From fb116d1b684f0c964fb48fd46447a6104c55d2a8 Mon Sep 17 00:00:00 2001 From: Leo dev Date: Thu, 13 Nov 2025 21:36:45 +0100 Subject: [PATCH] Fixed outline problem --- src/app/globals.css | 5 +++++ src/components/view/Doc.tsx | 26 ++++++++++++++------------ 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index c1adae6..4f19570 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -122,3 +122,8 @@ @apply bg-background text-foreground; } } + +:focus { + outline: none !important; + box-shadow: none !important; +} diff --git a/src/components/view/Doc.tsx b/src/components/view/Doc.tsx index 1ea672e..eb62f09 100644 --- a/src/components/view/Doc.tsx +++ b/src/components/view/Doc.tsx @@ -19,17 +19,19 @@ export default function DocView({ }, [editor]); return ( - { - if (editor) { - console.log(editor.blocksToMarkdownLossy(editor.document)); - setDoc(editor.blocksToMarkdownLossy(editor.document)); - } - }} - /> +
editor.focus()}> + { + if (editor) { + console.log(editor.blocksToMarkdownLossy(editor.document)); + setDoc(editor.blocksToMarkdownLossy(editor.document)); + } + }} + /> +
); }