Using NodePos.setAttribute() to update the attributes of a node doesn't seem to re-render a NodeView (or the attributes aren't changed at all). Changing it for a custom transaction works.
Might be caused by #5672. I don't see any errors in the console tho, like index out of bounds (if I manually call tr.setNodeMarkup with NodePos.pos as the position it throws that error, as the image is the last node).
Affected Packages
core
Version(s)
2.7.3
Bug Description
Using
NodePos.setAttribute()
to update the attributes of a node doesn't seem to re-render aNodeView
(or the attributes aren't changed at all). Changing it for a custom transaction works.This doesn't work:
This works:
Might be caused by #5672. I don't see any errors in the console tho, like index out of bounds (if I manually call
tr.setNodeMarkup
withNodePos.pos
as the position it throws that error, as the image is the last node).Browser Used
Firefox
Code Example URL
No response
Expected Behavior
-
Dependency Updates