Skip to content

Commit 12297e6

Browse files
Remove toolbar from the alpha editor (#1114)
* remove codeblock from toolbar * remove table from toolbar * removed strikethrough from tooltip * removed toolbar * removed color selector * remove tiptab extensions for underline, color, highlight, text align, subscript, superscript
1 parent 2325a5f commit 12297e6

File tree

11 files changed

+3
-995
lines changed

11 files changed

+3
-995
lines changed

components/editor/editor/RenderPost.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { CustomCodeBlockReadOnly, TiptapExtensions } from "./extensions";
2+
import { TiptapExtensions } from "./extensions";
33
import { EditorContent, useEditor } from "@tiptap/react";
44

55
interface RenderPostProps {
@@ -11,7 +11,7 @@ const RenderPost = ({ json }: RenderPostProps) => {
1111

1212
const editor = useEditor({
1313
editable: false,
14-
extensions: [...TiptapExtensions, CustomCodeBlockReadOnly],
14+
extensions: [...TiptapExtensions],
1515
content,
1616
});
1717

components/editor/editor/components/CodeBlock/CodeBlock.module.css

Lines changed: 0 additions & 5 deletions
This file was deleted.

components/editor/editor/components/CodeBlock/CodeBlock.tsx

Lines changed: 0 additions & 50 deletions
This file was deleted.

components/editor/editor/components/Table/CustomTableNodeView.tsx

Lines changed: 0 additions & 96 deletions
This file was deleted.

components/editor/editor/components/Toolbar/Toolbar.module.css

Lines changed: 0 additions & 102 deletions
This file was deleted.

0 commit comments

Comments
 (0)