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
-2
View File
@@ -10,7 +10,6 @@ import font from '../resources/fonts/IconFamily.woff'
import ThemeCreator from './pages/ThemeCreator';
import Store from './pages/Store';
import Editor from './pages/Editor';
browser.storage.local.get().then(({ DarkMode }) => {
if (DarkMode) document.documentElement.classList.add('dark');
@@ -53,7 +52,6 @@ root.render(
<Route path="/settings/embedded" element={<SettingsPage standalone={false} />} />
<Route path="/store" element={<Store />} />
<Route path="/themeCreator" element={<ThemeCreator />} />
<Route path="/editor" element={<Editor />} />
</Routes>
</HashRouter>
</ErrorBoundary>
-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>
)
}