mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 19:59:02 +08:00
fix/react-renderer-node-attrs (#4321)
This commit is contained in:
parent
3e9f9a6d24
commit
5b407ef08e
@ -157,6 +157,9 @@ class ReactNodeView extends NodeView<
|
||||
const oldNode = this.node
|
||||
const oldDecorations = this.decorations
|
||||
|
||||
Object.keys(node.attrs).forEach(key => {
|
||||
this.renderer.element.setAttribute(key, node.attrs[key])
|
||||
})
|
||||
this.node = node
|
||||
this.decorations = decorations
|
||||
|
||||
@ -173,6 +176,9 @@ class ReactNodeView extends NodeView<
|
||||
return true
|
||||
}
|
||||
|
||||
Object.keys(node.attrs).forEach(key => {
|
||||
this.renderer.element.setAttribute(key, node.attrs[key])
|
||||
})
|
||||
this.node = node
|
||||
this.decorations = decorations
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user