🩹 clean up behavior of tiptap codeblockextension
This commit is contained in:
parent
50e22f0b34
commit
d4b6d2d819
2 changed files with 2 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ const CodeBlockComponent = ({
|
|||
(state: RootStore) => state.state.contextItems
|
||||
);
|
||||
return (
|
||||
<NodeViewWrapper className="code-block-with-content" as="pre">
|
||||
<NodeViewWrapper className="code-block-with-content" as="p">
|
||||
<CodeSnippetPreview
|
||||
borderColor={
|
||||
item.id === contextItems[0]?.id
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ function CodeSnippetPreview(props: CodeSnippetPreviewProps) {
|
|||
|
||||
return (
|
||||
<PreviewMarkdownDiv
|
||||
contentEditable={false}
|
||||
onMouseEnter={() => setHovered(true)}
|
||||
onMouseLeave={() => setHovered(false)}
|
||||
borderColor={props.borderColor}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue