render tiptap in react
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import Document from '@tiptap/extension-document'
|
||||
import History from '@tiptap/extension-history'
|
||||
import Paragraph from '@tiptap/extension-paragraph'
|
||||
import Text from '@tiptap/extension-text'
|
||||
import History from '@tiptap/extension-history'
|
||||
import Bold from '@tiptap/extension-bold'
|
||||
import Italic from '@tiptap/extension-italic'
|
||||
import Code from '@tiptap/extension-code'
|
||||
import CodeBlock from '@tiptap/extension-codeblock'
|
||||
|
||||
export default function extensions() {
|
||||
return [
|
||||
@@ -9,5 +13,9 @@ export default function extensions() {
|
||||
new History(),
|
||||
new Paragraph(),
|
||||
new Text(),
|
||||
new Bold(),
|
||||
new Italic(),
|
||||
new Code(),
|
||||
new CodeBlock(),
|
||||
]
|
||||
}
|
||||
@@ -15,6 +15,10 @@
|
||||
"@tiptap/extension-document": "1.x",
|
||||
"@tiptap/extension-history": "1.x",
|
||||
"@tiptap/extension-paragraph": "1.x",
|
||||
"@tiptap/extension-text": "1.x"
|
||||
"@tiptap/extension-text": "1.x",
|
||||
"@tiptap/extension-bold": "1.x",
|
||||
"@tiptap/extension-italic": "1.x",
|
||||
"@tiptap/extension-code": "1.x",
|
||||
"@tiptap/extension-codeblock": "1.x"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user