Skip to content

Commit

Permalink
Update description for uploadComplete handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmotyczynska committed Sep 7, 2023
1 parent 9cf1ed5 commit 84d77c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export default class ImageUploadEditing extends Plugin {
} );

// Set the default handler for feeding the image element with `src` and `srcset` attributes.
// Load the image, read and set `width` and `height` attributes (original sizes).
// Also set the natural `width` and `height` attributes (if not already set).
this.on<ImageUploadCompleteEvent>( 'uploadComplete', ( evt, { imageElement, data } ) => {
const urls = data.urls ? data.urls as Record<string, unknown> : data;

Expand Down

0 comments on commit 84d77c6

Please sign in to comment.