ソースを参照

Use isList() helper function in isNewListNeeded.

Maciej Gołaszewski 6 年 前
コミット
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).
 	// 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
 // Paste from Google Docs