fix bug
This commit is contained in:
@@ -23,7 +23,7 @@ export default new Node()
|
||||
tag: 'ol',
|
||||
getAttrs: node => ({
|
||||
order: (node as HTMLElement).hasAttribute('start')
|
||||
? +(node as HTMLElement).getAttribute('start')
|
||||
? parseInt((node as HTMLElement).getAttribute('start') || '')
|
||||
: 1,
|
||||
}),
|
||||
}],
|
||||
|
||||
@@ -13,6 +13,7 @@ import Underline from '@tiptap/extension-underline'
|
||||
import Blockquote from '@tiptap/extension-blockquote'
|
||||
import HorizontalRule from '@tiptap/extension-horizontal-rule'
|
||||
import BulletList from '@tiptap/extension-bullet-list'
|
||||
import OrderedList from '@tiptap/extension-ordered-list'
|
||||
import ListItem from '@tiptap/extension-list-item'
|
||||
|
||||
export default function defaultExtensions() {
|
||||
@@ -32,6 +33,7 @@ export default function defaultExtensions() {
|
||||
Blockquote(),
|
||||
HorizontalRule(),
|
||||
BulletList(),
|
||||
OrderedList(),
|
||||
ListItem(),
|
||||
]
|
||||
}
|
||||
@@ -27,6 +27,7 @@
|
||||
"@tiptap/extension-blockquote": "1.x",
|
||||
"@tiptap/extension-horizontal-rule": "1.x",
|
||||
"@tiptap/extension-bullet-list": "1.x",
|
||||
"@tiptap/extension-ordered-list": "1.x",
|
||||
"@tiptap/extension-list-item": "1.x"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ import Underline from '@tiptap/extension-underline'
|
||||
import Blockquote from '@tiptap/extension-blockquote'
|
||||
import HorizontalRule from '@tiptap/extension-horizontal-rule'
|
||||
import BulletList from '@tiptap/extension-bullet-list'
|
||||
import OrderedList from '@tiptap/extension-ordered-list'
|
||||
import ListItem from '@tiptap/extension-list-item'
|
||||
|
||||
export function defaultExtensions() {
|
||||
@@ -34,6 +35,7 @@ export function defaultExtensions() {
|
||||
Blockquote(),
|
||||
HorizontalRule(),
|
||||
BulletList(),
|
||||
OrderedList(),
|
||||
ListItem(),
|
||||
]
|
||||
}
|
||||
@@ -28,6 +28,7 @@
|
||||
"@tiptap/extension-blockquote": "1.x",
|
||||
"@tiptap/extension-horizontal-rule": "1.x",
|
||||
"@tiptap/extension-bullet-list": "1.x",
|
||||
"@tiptap/extension-ordered-list": "1.x",
|
||||
"@tiptap/extension-list-item": "1.x"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user