mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 14:59:27 +08:00
feat(ordered-list): add type
attribute (#5344)
This commit is contained in:
parent
e31673d347
commit
da7b337c3b
5
.changeset/ordered-list-type-attr.md
Normal file
5
.changeset/ordered-list-type-attr.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@tiptap/extension-ordered-list": minor
|
||||
---
|
||||
|
||||
Support the `type` attribute for ordered lists
|
@ -84,6 +84,10 @@ export const OrderedList = Node.create<OrderedListOptions>({
|
||||
: 1
|
||||
},
|
||||
},
|
||||
type: {
|
||||
default: null,
|
||||
parseHTML: element => element.getAttribute('type'),
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user