Skip to content

Commit

Permalink
Review fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbarnas committed Jan 14, 2021
1 parent ef1ab8e commit 5fc6025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ckeditor5-image/src/imagestyle/converters.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export function viewToModelStyleAttribute( styles ) {
const viewFigureElement = data.viewItem;
const modelImageElement = first( data.modelRange.getItems() );

// Check if `modelImageElement` exists (see: #8270) and `imageStyle` attribute is allowed
// for that element, otherwise stop conversion early.
// Check if `modelImageElement` exists (see: https://github.com/ckeditor/ckeditor5/issues/8270)
// and `imageStyle` attribute is allowed for that element, otherwise stop conversion early.
if ( modelImageElement && !conversionApi.schema.checkAttribute( modelImageElement, 'imageStyle' ) ) {
return;
}
Expand Down

0 comments on commit 5fc6025

Please sign in to comment.