Skip to content

Commit

Permalink
Merge branch '4.5' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Oct 6, 2023
2 parents 52f35dd + 72f17e1 commit d4b9f58
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ class IbexaEmbedImageEditing extends Plugin {
dispatcher.on('attribute:previewUrl', (event, data, conversionApi) => {
const downcastWriter = conversionApi.writer;
const modelElement = data.item;

if (!modelElement.getAttribute('previewUrl')) {
return;
}

const viewElement = conversionApi.mapper.toViewElement(modelElement);
const preview = downcastWriter.createUIElement(
'img',
Expand Down

0 comments on commit d4b9f58

Please sign in to comment.