8
0
Mateusz Samsel 6 лет назад
Родитель
Сommit
d85b208f32
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/ckeditor5-paste-from-office/src/filters/list.js

+ 2 - 2
packages/ckeditor5-paste-from-office/src/filters/list.js

@@ -290,7 +290,7 @@ export function fixListIndentation( elementOrDocumentFragment, writer ) {
 	for ( const value of writer.createRangeIn( elementOrDocumentFragment ) ) {
 		const element = value.item;
 
-		// 1. List should not be a sibling of a list item. This is the nested list which should go inside the list item.
+		// 1. Move nested list as child of sibling list item.
 		if ( element.is( 'li' ) ) {
 			const next = element.nextSibling;
 
@@ -300,7 +300,7 @@ export function fixListIndentation( elementOrDocumentFragment, writer ) {
 			}
 		}
 
-		// 2. List cannot contain another list as a child.
+		// 2. Unwrap nested list
 		if ( isList( element ) ) {
 			let firstChild = element.getChild( 0 );