Skip to content

Commit

Permalink
Remove toolbar from the alpha editor (#1114)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
MichaelMoyles authored Oct 14, 2024
1 parent 2325a5f commit 12297e6
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 995 deletions.
4 changes: 2 additions & 2 deletions components/editor/editor/RenderPost.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { CustomCodeBlockReadOnly, TiptapExtensions } from "./extensions";
import { TiptapExtensions } from "./extensions";
import { EditorContent, useEditor } from "@tiptap/react";

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

const editor = useEditor({
editable: false,
extensions: [...TiptapExtensions, CustomCodeBlockReadOnly],
extensions: [...TiptapExtensions],
content,
});

Expand Down

This file was deleted.

50 changes: 0 additions & 50 deletions components/editor/editor/components/CodeBlock/CodeBlock.tsx

This file was deleted.

96 changes: 0 additions & 96 deletions components/editor/editor/components/Table/CustomTableNodeView.tsx

This file was deleted.

102 changes: 0 additions & 102 deletions components/editor/editor/components/Toolbar/Toolbar.module.css

This file was deleted.

Loading

0 comments on commit 12297e6

Please sign in to comment.