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)); + } + }} + /> +
); }