You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A link may be added to an image embedded in a text paragraph by clicking on the image to select it and then clicking the Link media button in the pop-up media toolbar. See this issue regarding the implementation of this feature in Quickstart: Allow displaying images as linked images #2366.
However, if a block is embedded in the same text area, the link for the image will not work on the published page. Any block causes this behavior, even an empty flexible block.
When editing a page, add a new Text paragraph to a page by clicking the Add Text button.
Click the Insert Media button in the editor toolbar.
Select an image and insert it into the text area.
Click the image to select it.
Click the Link media button in the row of icons above/below the image.
Enter any link and click the green check mark button.
Click elsewhere in the text area to deselect the image (you may need to click the new line button on the image).
Click the Embed Content Block button in the editor toolbar.
Select any block, click the Next button, and then click the Embed button.
Save the page.
Observe that the image link does not work on the published page.
Proposed resolution
This may be a CKEditor 5 issue. As a workaround, users can arrange their content to ensure that linked images are not embedded in the same text paragraph as a content block.
Expected behavior
Linked images should be functional regardless of what other content is embedded in the same text paragraph.
Additional context
When the link of the linked image works correctly, it appears that the HTML of that section is malformed: the <p> element containing the <a> element is closed before the <a> element is closed. Then, after the <a> element is closed, an extra unclosed <p> tag is added.
The text was updated successfully, but these errors were encountered:
This issue was likely introduced in Quickstart 2.9.0. In testing a couple sites, I found that the issue was not present on a Quickstart 2.8.3 site, but it was present on a Quickstart 2.9.5 site.
Describe the bug
A link may be added to an image embedded in a text paragraph by clicking on the image to select it and then clicking the Link media button in the pop-up media toolbar. See this issue regarding the implementation of this feature in Quickstart: Allow displaying images as linked images #2366.
However, if a block is embedded in the same text area, the link for the image will not work on the published page. Any block causes this behavior, even an empty flexible block.
Note: For guidance about the accessible use of images, especially those that are linked, see https://www.w3.org/WAI/tutorials/images/.
To Reproduce
Steps to reproduce the behavior:
Proposed resolution
This may be a CKEditor 5 issue. As a workaround, users can arrange their content to ensure that linked images are not embedded in the same text paragraph as a content block.
Expected behavior
Linked images should be functional regardless of what other content is embedded in the same text paragraph.
Additional context
When the link of the linked image works correctly, it appears that the HTML of that section is malformed: the
<p>
element containing the<a>
element is closed before the<a>
element is closed. Then, after the<a>
element is closed, an extra unclosed<p>
tag is added.The text was updated successfully, but these errors were encountered: