remove editor

This commit is contained in:
sethburkart123
2024-07-02 20:24:51 +10:00
parent 9b8ed30d4e
commit 49e1924a88
5 changed files with 0 additions and 167 deletions
-15
View File
@@ -1,15 +0,0 @@
body {
background: transparent !important;
}
.bn-container[data-color-scheme=dark] {
--bn-colors-editor-background: #18181B00 !important;
}
.bn-container > [contenteditable="true"] {
height: 100vh !important;
}
.ProseMirror {
background: transparent !important;
}
-23
View File
@@ -1,23 +0,0 @@
import "@blocknote/core/fonts/inter.css";
import { useCreateBlockNote } from "@blocknote/react";
import { BlockNoteView } from "@blocknote/mantine";
import "@blocknote/mantine/style.css";
import './Editor.css'
export default function Editor() {
const editor = useCreateBlockNote({});
editor._tiptapEditor.on('update', () => {
window.parent.postMessage({
type: 'message-html',
data: editor._tiptapEditor.getHTML(),
}, '*')
})
return (
<div className="h-screen">
<BlockNoteView editor={editor} />
</div>
)
}