8
0
Просмотр исходного кода

Use isList() helper function in isNewListNeeded.

Maciej Gołaszewski 6 лет назад
Родитель
Сommit
f85a7c35d6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/ckeditor5-paste-from-office/src/filters/list.js

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

@@ -228,7 +228,7 @@ function isNewListNeeded( previousItem, currentItem ) {
 	}
 
 	// Even with the same id the list does not have to be continuous (#43).
-	return !previousSibling.is( 'ul' ) && !previousSibling.is( 'ol' );
+	return !isList( previousSibling );
 }
 
 // Paste from Google Docs