In a Draft, if you add an image in the content using the wysiwyg editor will be inserted this way in source :
Publishing this content will result in :
[[image:PublishedDocument@myImage.ext]]
It causes an issue when the document is renamed as the reference is not updated, images are displayed as broken because the previous document does not exist anymore. The code is already managing image block like
using
imageBlock.isFreeStandingURI()
but isFreeStandingURI() is true only if there are no brackets around the image block. |