mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 03:39:01 +08:00
fix(core): filter rendered extensionAttributes (#5588)
This commit is contained in:
parent
112d1495d6
commit
d57ee51223
5
.changeset/tricky-apricots-smash.md
Normal file
5
.changeset/tricky-apricots-smash.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@tiptap/core": patch
|
||||
---
|
||||
|
||||
filter rendered extensionAttributes (#5588)
|
@ -8,6 +8,9 @@ export function getRenderedAttributes(
|
||||
extensionAttributes: ExtensionAttribute[],
|
||||
): Record<string, any> {
|
||||
return extensionAttributes
|
||||
.filter(
|
||||
attribute => attribute.type === nodeOrMark.type.name,
|
||||
)
|
||||
.filter(item => item.attribute.rendered)
|
||||
.map(item => {
|
||||
if (!item.attribute.renderHTML) {
|
||||
|
Loading…
Reference in New Issue
Block a user