Skip to content

Commit 754c369

Browse files
authored
fix(coremedia-richtext): Adapt to breaking API change
The system test _Should correctly render broken image with empty src_ fails. This is (most likely) due to the breaking API change of `setXLinkDataSetEntries`. To grant the old behavior, adding `allowEmpty = true` to the call.
1 parent ff6e344 commit 754c369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ckeditor5-coremedia-richtext/src/rules/ImageElements.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const imageElements: RuleConfig = {
5656
if (isHTMLImageElement(node)) {
5757
// title: Not mapping xlink:title to title yet, as we use the title
5858
// for generating tooltips regarding the related content.
59-
setXLinkDataSetEntries(node, extractXLinkAttributes(node));
59+
setXLinkDataSetEntries(node, extractXLinkAttributes(node), true);
6060
node.src = INLINE_IMG;
6161
}
6262
return node;

0 commit comments

Comments
 (0)