mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
remove editor
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user