plone/Products.TinyMCE

TinyMCE 1.2.12 - Image Links contain Parent Folders (Sometimes)

Closed this issue · 1 comments

When an image is updated (and sometimes inserted, but unreproducible) The resulting link resembles:
img class="image-inline captioned" src="../../../../resolveuid/8cbc3c91-8660-4bc7"

The issue is specific to prepending ../../../../ to the src url.

plone.outputfilters seems to then refuse to caption or resolveUid after this happens. The result is "My image isn't captioned, but I checked the box!"

Editing the HTML and removing the parent references fixes the problem.

Inserting an image seems not to produce this, although I've had reports that it does. I cannot reproduce them tho.

I'm able to reproduce this consistently after editing an image already inserted.
Changing the image description and clicking "update" seems to do the trick consistently.

I'm currently spelunking this with zero experience in this package, and I'm happy to provide a fix if I can isolate the issue.

However,
Can someone independently reproduce this?
Has this been resolved somewhere else?

Due to platform restrictions, we can't upgrade to 1.3 yet. So this is only specific to the 1.2.x branch. Sorry.

Closing this. In Plone 5 tinyMCE will still add the ../../../../ but it looks like Outputfilters is correctly handling the resolveuid now.