feat: configure TipTap extensions (Bold, Italic, Underline, Headings, History)
This commit is contained in:
1 parent
77c251fff0
commit
e390ad1c82
1 file changed
+21
@@ -0,0 +1,21 @@
|
||||
import Document from '@tiptap/extension-document';
|
||||
import Paragraph from '@tiptap/extension-paragraph';
|
||||
import Text from '@tiptap/extension-text';
|
||||
import Bold from '@tiptap/extension-bold';
|
||||
import Italic from '@tiptap/extension-italic';
|
||||
import Underline from '@tiptap/extension-underline';
|
||||
import Heading from '@tiptap/extension-heading';
|
||||
import History from '@tiptap/extension-history';
|
||||
import Placeholder from '@tiptap/extension-placeholder';
|
||||
|
||||
export const extensions = [
|
||||
Document,
|
||||
Paragraph,
|
||||
Text,
|
||||
Bold,
|
||||
Italic,
|
||||
Underline,
|
||||
Heading.configure({ levels: [1, 2, 3] }),
|
||||
History,
|
||||
Placeholder.configure({ placeholder: 'Start typing…' }),
|
||||
];
|
||||
Reference in new issue
Block a user