8
0
Szymon Cofalik 6 лет назад
Родитель
Сommit
7923417eb3
1 измененных файлов с 3 добавлено и 7 удалено
  1. 3 7
      packages/ckeditor5-engine/src/conversion/upcastdispatcher.js

+ 3 - 7
packages/ckeditor5-engine/src/conversion/upcastdispatcher.js

@@ -573,17 +573,13 @@ function createContextTree( contextDefinition, writer ) {
  * Example of a usage in a converter code:
  *
  *		const myElement = conversionApi.writer.createElement( 'myElement' );
- *		// ...
+ *
+ *		// Children conversion may split `myElement`.
  *		conversionApi.convertChildren( myElement, modelCursor );
- *		// ...
+ *
  *		const splitParts = conversionApi.getSplitParts( myElement );
  *		const lastSplitPart = splitParts[ splitParts.length - 1 ];
  *
- *		// Additional processing on all the parts after the children are converted and the original element might be split.
- *		for ( const element of splitParts ) {
- *			// ...
- *		}
- *
  *		// Setting `data.modelRange` basing on split parts:
  *		data.modelRange = conversionApi.writer.createRange(
  *			conversionApi.writer.createPositionBefore( myElement ),