Fixed bug where link content was rewritten even if it contained other nodes than texts (images, etc)

If you edit a link with not only text in it (images for exemple) and you modify the "Text to display", then you'll see that the entire link content is replaced by the new text, losing the other contents (images...).
This commit fixes that.