Skip to content

Commit

Permalink
feat: 🔥 remove paragraph default menu button
Browse files Browse the repository at this point in the history
  • Loading branch information
Leecason committed Dec 18, 2019
1 parent f6ea056 commit 410b205
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
2 changes: 0 additions & 2 deletions src/components/MenuCommands/CommandButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import {
faIndent,
faOutdent,
faMinus,
faParagraph,
faUndo,
faRedo,
} from '@fortawesome/free-solid-svg-icons';
Expand All @@ -65,7 +64,6 @@ library.add(
faIndent,
faOutdent,
faMinus,
faParagraph,
faUndo,
faRedo,
);
Expand Down
13 changes: 0 additions & 13 deletions src/extensions/paragraph.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Paragraph as TiptapParagraph } from 'tiptap';
import CommandButton from '@/components/MenuCommands/CommandButton.vue';
import { ALIGN_PATTERN } from './text_align';
import {
LINE_HEIGHT_VALUE_MAP,
Expand Down Expand Up @@ -73,18 +72,6 @@ export default class Paragraph extends TiptapParagraph {
get schema () {
return ParagraphNodeSpec;
}

menuBtnView ({ isActive, commands }) {
return {
component: CommandButton,
componentProps: {
isActive: isActive.paragraph(),
command: commands.paragraph,
icon: 'paragraph',
tooltip: 'Paragraph',
},
};
}
}

export const toParagraphDOM = toDOM;
Expand Down

0 comments on commit 410b205

Please sign in to comment.