Fixed outline problem
This commit is contained in:
@@ -122,3 +122,8 @@
|
|||||||
@apply bg-background text-foreground;
|
@apply bg-background text-foreground;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:focus {
|
||||||
|
outline: none !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|||||||
+14
-12
@@ -19,17 +19,19 @@ export default function DocView({
|
|||||||
}, [editor]);
|
}, [editor]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BlockNoteView
|
<div className="h-full w-3xl mx-auto bg-accent/20 rounded-2xl px-4 py-2 docs-view" onClick={() => editor.focus()}>
|
||||||
defaultValue={doc}
|
<BlockNoteView
|
||||||
editor={editor}
|
defaultValue={doc}
|
||||||
shadCNComponents={{}}
|
editor={editor}
|
||||||
className="w-full h-svh px-6 mt-4"
|
shadCNComponents={{}}
|
||||||
onChange={async () => {
|
className="w-full focus:outline-none focus:ring-0 appearance-none"
|
||||||
if (editor) {
|
onChange={async () => {
|
||||||
console.log(editor.blocksToMarkdownLossy(editor.document));
|
if (editor) {
|
||||||
setDoc(editor.blocksToMarkdownLossy(editor.document));
|
console.log(editor.blocksToMarkdownLossy(editor.document));
|
||||||
}
|
setDoc(editor.blocksToMarkdownLossy(editor.document));
|
||||||
}}
|
}
|
||||||
/>
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user