The image node's success-state toDOM (src/components/text-editor/prosemirror-adapter/plugins/image/node.ts) returns the cached HTMLImageElement instance itself. HTMLConverter.serialize runs DOMSerializer.serializeFragment and appends the result to a detached container — relocating that shared live element. Serializing twice, or any clipboard serialization, mutates state shared with the rendered editor. toDOM returning a clone (or an array spec) for serialization contexts would avoid this.
The image node's success-state
toDOM(src/components/text-editor/prosemirror-adapter/plugins/image/node.ts) returns the cachedHTMLImageElementinstance itself.HTMLConverter.serializerunsDOMSerializer.serializeFragmentand appends the result to a detached container — relocating that shared live element. Serializing twice, or any clipboard serialization, mutates state shared with the rendered editor.toDOMreturning a clone (or an array spec) for serialization contexts would avoid this.