Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Docs: More improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
scofalik committed Mar 26, 2019
1 parent a6f81a3 commit 9dc2c6a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/conversion/upcastdispatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ),
Expand Down

0 comments on commit 9dc2c6a

Please sign in to comment.