mirror of
https://github.com/Ategon/Jamjar.git
synced 2025-02-12 06:16:21 +00:00
Remove underline abilities
This commit is contained in:
parent
6cc5aa0465
commit
b3cc66078a
4 changed files with 0 additions and 24 deletions
14
package-lock.json
generated
14
package-lock.json
generated
|
@ -41,7 +41,6 @@
|
|||
"@tiptap/extension-text": "^2.11.2",
|
||||
"@tiptap/extension-text-align": "^2.11.2",
|
||||
"@tiptap/extension-typography": "^2.11.2",
|
||||
"@tiptap/extension-underline": "^2.11.2",
|
||||
"@tiptap/extension-youtube": "^2.11.2",
|
||||
"@tiptap/pm": "^2.11.2",
|
||||
"@tiptap/react": "^2.11.2",
|
||||
|
@ -4590,19 +4589,6 @@
|
|||
"@tiptap/core": "^2.7.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@tiptap/extension-underline": {
|
||||
"version": "2.11.2",
|
||||
"resolved": "https://registry.npmjs.org/@tiptap/extension-underline/-/extension-underline-2.11.2.tgz",
|
||||
"integrity": "sha512-Gq7hfV3D/3E1zoE6JXSYZ3boKfbjebFu7IuQZ6w6QSS/IkGN8c6kW+WtkhOKN3jV7Z5uF5KIVp3XCqNIwChWNQ==",
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/ueberdosis"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@tiptap/core": "^2.7.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@tiptap/extension-youtube": {
|
||||
"version": "2.11.2",
|
||||
"resolved": "https://registry.npmjs.org/@tiptap/extension-youtube/-/extension-youtube-2.11.2.tgz",
|
||||
|
|
|
@ -42,7 +42,6 @@
|
|||
"@tiptap/extension-text": "^2.11.2",
|
||||
"@tiptap/extension-text-align": "^2.11.2",
|
||||
"@tiptap/extension-typography": "^2.11.2",
|
||||
"@tiptap/extension-underline": "^2.11.2",
|
||||
"@tiptap/extension-youtube": "^2.11.2",
|
||||
"@tiptap/pm": "^2.11.2",
|
||||
"@tiptap/react": "^2.11.2",
|
||||
|
|
|
@ -18,7 +18,6 @@ import {
|
|||
Strikethrough,
|
||||
Subscript,
|
||||
Superscript,
|
||||
Underline,
|
||||
Undo,
|
||||
} from "lucide-react";
|
||||
import EditorMenuButton from "./EditorMenuButton";
|
||||
|
@ -125,12 +124,6 @@ export default function EditorMenuBar({ editor }: EditorMenuProps) {
|
|||
disabled: false,
|
||||
isActive: editor.isActive("italic"),
|
||||
},
|
||||
{
|
||||
icon: <Underline size={20} />,
|
||||
onClick: () => editor.chain().focus().toggleUnderline().run(),
|
||||
disabled: false,
|
||||
isActive: editor.isActive("underline"),
|
||||
},
|
||||
{
|
||||
icon: <Highlighter size={20} />,
|
||||
onClick: () => editor.chain().focus().toggleHighlight().run(),
|
||||
|
|
|
@ -8,7 +8,6 @@ import { useEditor, EditorContent } from "@tiptap/react";
|
|||
import EditorMenuBar from "./EditorMenuBar";
|
||||
import Bold from "@tiptap/extension-bold";
|
||||
import Italic from "@tiptap/extension-italic";
|
||||
import Underline from "@tiptap/extension-underline";
|
||||
import Highlight from "@tiptap/extension-highlight";
|
||||
import Strike from "@tiptap/extension-strike";
|
||||
import Subscript from "@tiptap/extension-subscript";
|
||||
|
@ -66,7 +65,6 @@ export default function Editor({
|
|||
}),
|
||||
Bold,
|
||||
Italic,
|
||||
Underline,
|
||||
Highlight,
|
||||
Strike,
|
||||
Subscript,
|
||||
|
|
Loading…
Reference in a new issue