Active
Project:
Linkit
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Oct 2016 at 14:04 UTC
Updated:
19 Oct 2016 at 14:58 UTC
Jump to comment: Most recent
Support was recently for CKEditor's Enhanced Image widget in #2715393: Error while putting a link on an image..
However, if the image is "captioned", the only thing that gets linked is the caption, not the image. Here's the before/after HTML.
Before:
<figure class="image">
<img alt="" height="225" src="/sites/default/files/img_0224.jpg" width="300" />
<figcaption>Caption</figcaption>
</figure>
After:
<figure class="image">
<img alt="" height="225" src="/sites/default/files/img_0224.jpg" width="300" />
<figcaption><a href="/node/1">Caption</a></figcaption>
</figure>
What I expected:
<figure class="image">
<a href="/"><img alt="" height="225" src="/sites/default/files/img_0224.jpg" width="300" /></a>
<figcaption>Caption</figcaption>
</figure>
Comments
Comment #2
joelstein commentedComment #3
joelstein commentedComment #4
joelstein commentedWe're using a patch similar to #2820456-2: Simple "Linkit Browser" WYSIWYG plugin as a workaround to add Enhanced Image support.