Skip to content
Snippets Groups Projects
Commit 6536b149 authored by Leon Jung's avatar Leon Jung
Browse files

update App.tsx and remove unnecessary media components

parent 7268e5f1
Branches main
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ import { PlateEditor } from "./components/editor/plate-editor";
function App() {
return (
<div className="bg-blue-800 h-screen flex items-center justify-center z-10 relative">
<div className="bg-blue-800 h-screen flex items-center justify-center">
<PlateEditor />
</div>
);
......
......@@ -13,7 +13,6 @@ import {
useEditorRef,
} from '@udecode/plate-common/react';
import { DatePlugin } from '@udecode/plate-date/react';
import { ExcalidrawPlugin } from '@udecode/plate-excalidraw/react';
import { HEADING_KEYS } from '@udecode/plate-heading';
import { TocPlugin } from '@udecode/plate-heading/react';
import { HorizontalRulePlugin } from '@udecode/plate-horizontal-rule/react';
......@@ -23,7 +22,6 @@ import {
EquationPlugin,
InlineEquationPlugin,
} from '@udecode/plate-math/react';
import { ImagePlugin, MediaEmbedPlugin } from '@udecode/plate-media/react';
import { TablePlugin } from '@udecode/plate-table/react';
import { TogglePlugin } from '@udecode/plate-toggle/react';
import {
......@@ -31,16 +29,13 @@ import {
ChevronRightIcon,
Columns3Icon,
FileCodeIcon,
FilmIcon,
Heading1Icon,
Heading2Icon,
Heading3Icon,
ImageIcon,
Link2Icon,
ListIcon,
ListOrderedIcon,
MinusIcon,
PenToolIcon,
PilcrowIcon,
PlusIcon,
QuoteIcon,
......@@ -159,31 +154,6 @@ const groups: Group[] = [
},
})),
},
{
group: 'Media',
items: [
{
icon: <ImageIcon />,
label: 'Image',
value: ImagePlugin.key,
},
{
icon: <FilmIcon />,
label: 'Embed',
value: MediaEmbedPlugin.key,
},
{
icon: <PenToolIcon />,
label: 'Excalidraw',
value: ExcalidrawPlugin.key,
},
].map((item) => ({
...item,
onSelect: (editor, value) => {
insertBlock(editor, value);
},
})),
},
{
group: 'Advanced blocks',
items: [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment