Skip to content

Commit

Permalink
Use new upcast conversion API for view figure.
Browse files Browse the repository at this point in the history
  • Loading branch information
jodator committed Jul 6, 2020
1 parent 0e8bbca commit ad8e93a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/ckeditor5-image/src/image/converters.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@ export function viewFigureToModel() {
// Convert rest of the figure element's children as an image children.
conversionApi.convertChildren( data.viewItem, modelImage );

// Set image range as conversion result.
data.modelRange = conversionResult.modelRange;

// Continue conversion where image conversion ends.
data.modelCursor = conversionResult.modelCursor;
conversionApi.updateConversionResult( modelImage, data );
}
}

Expand Down

0 comments on commit ad8e93a

Please sign in to comment.