Explorar o código

Use new upcast conversion API for title.

Maciej Gołaszewski %!s(int64=5) %!d(string=hai) anos
pai
achega
0e8bbca1d3
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      packages/ckeditor5-heading/src/title.js

+ 1 - 2
packages/ckeditor5-heading/src/title.js

@@ -447,8 +447,7 @@ function dataViewModelH1Insertion( evt, data, conversionApi ) {
 
 	conversionApi.convertChildren( viewItem, titleContent );
 
-	data.modelRange = modelWriter.createRangeOn( title );
-	data.modelCursor = modelWriter.createPositionAt( data.modelRange.end );
+	conversionApi.updateConversionResult( title, data );
 }
 
 // Maps position from the beginning of the model `title` element to the beginning of the view `h1` element.