Closed nstoychev closed 1 year ago
That's a command from the prosemirror-example-setup package, not the core library. Feel free to use a more clever command in your own setup if you want, but this doesn't seem like a big issue (the menu item is called "insert image", after all).
It is strange that the issue happens with link
mark only, and works as expected with strong
or em
marks.
I'll use transaction.setNodeMarkup
to update the image.
Thanks
It is going through replaceSelectionWith
, which will behave the same as typing with that selection—an inclusive mark, if entirely selected, will be preserved. But a non-inclusive mark (which links are) won't.
Steps to Reproduce:
Expected behavior: The image should retain any hyperlinks that have been added.
Reproducible on Windows 10, Chrome and Firefox