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

Commit

Permalink
Docs: Added more explanation to a comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
scofalik committed Aug 15, 2017
1 parent e5a82bd commit 535ed5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/conversion/model-selection-to-view-converters.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ function wrapCollapsedSelectionPosition( modelSelection, viewSelection, viewElem

// This hack is supposed to place attribute element *after* all ui elements if the attribute element would be
// the only non-ui child and thus receive a block filler.
// This is needed to properly render ui elements. Block filler is a <br /> element. If it is placed before
// UI element, the ui element will most probably be incorrectly rendered (in next line). #1072.
if ( shouldPushAttributeElement( viewPosition.parent ) ) {
viewPosition = viewPosition.getLastMatchingPosition( value => value.item.is( 'uiElement' ) );
}
Expand Down

0 comments on commit 535ed5c

Please sign in to comment.