瀏覽代碼

Docs: More improvements.

Szymon Cofalik 6 年之前
父節點
當前提交
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 ),