Skip to content

Commit

Permalink
Updated code comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
niegowski committed May 5, 2021
1 parent aa5c6b4 commit 425b6c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ckeditor5-engine/src/conversion/downcasthelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -953,13 +953,13 @@ function handleMarkerBoundary( range, isStart, conversionApi, data, viewMarkerDa

// If possible, we want to add `data-group-start-before` and `data-group-end-after` attributes.
if ( isStart && elementAfter || !isStart && !elementBefore ) {
// <elementBefore/>[<elementAfter/> -> data-group-start-before elementAfter
// <$text/>]<elementAfter/> -> data-group-end-before elementAfter
// [<elementAfter>...</elementAfter> -> <elementAfter data-group-start-before="...">...</elementAfter>
// <parent>]<elementAfter> -> <parent><elementAfter data-group-end-before="...">
modelElement = elementAfter;
isBefore = true;
} else {
// <elementBefore>[<$text/> -> data-group-start-after elementBefore
// <elementBefore/>]<elementAfter/> -> data-group-end-after elementBefore
// <elementBefore>...</elementBefore>] -> <elementBefore data-group-end-after="...">...</elementBefore>
// </elementBefore>[</parent> -> </elementBefore data-group-start-after="..."></parent>
modelElement = elementBefore;
isBefore = false;
}
Expand Down

0 comments on commit 425b6c9

Please sign in to comment.