Przeglądaj źródła

Fixed comment position.

Maciej Bukowski 8 lat temu
rodzic
commit
ec410f49ae

+ 2 - 2
packages/ckeditor5-engine/src/controller/insertcontent.js

@@ -45,14 +45,14 @@ export default function insertContent( dataController, content, selection, batch
 	let nodesToInsert;
 
 	if ( content.is( 'documentFragment' ) ) {
-		// The set of children being inserted is the only set in this context
-		// so it's the first and last (it's a hack ;)).
 		nodesToInsert = content.getChildren();
 	} else {
 		nodesToInsert = [ content ];
 	}
 
 	insertion.handleNodes( nodesToInsert, {
+		// The set of children being inserted is the only set in this context
+		// so it's the first and last (it's a hack ;)).
 		isFirst: true,
 		isLast: true
 	} );