@ckeditor/ckeditor5-list 47.7.1 → 47.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -4648,7 +4648,8 @@ const DEFAULT_LIST_TYPE$1 = 'default';
|
|
|
4648
4648
|
dropdownView.panelView.children.add(listPropertiesView);
|
|
4649
4649
|
});
|
|
4650
4650
|
// Focus the editable after executing the command.
|
|
4651
|
-
// Overrides a default behaviour where the focus is moved to the dropdown button
|
|
4651
|
+
// Overrides a default behaviour where the focus is moved to the dropdown button.
|
|
4652
|
+
// See https://github.com/ckeditor/ckeditor5/issues/12125.
|
|
4652
4653
|
dropdownView.on('execute', ()=>{
|
|
4653
4654
|
editor.editing.view.focus();
|
|
4654
4655
|
});
|
|
@@ -6740,7 +6741,7 @@ const NUMBERED_LIST_STYLE_TYPES = [
|
|
|
6740
6741
|
if (itemToListHead.has(listHead)) {
|
|
6741
6742
|
return;
|
|
6742
6743
|
}
|
|
6743
|
-
for(// Cache previousSibling and reuse for performance reasons. See
|
|
6744
|
+
for(// Cache previousSibling and reuse for performance reasons. See https://github.com/ckeditor/ckeditor5/issues/6581.
|
|
6744
6745
|
let previousSibling = listHead.previousSibling; previousSibling && previousSibling.is('element', 'listItem'); previousSibling = listHead.previousSibling){
|
|
6745
6746
|
listHead = previousSibling;
|
|
6746
6747
|
if (itemToListHead.has(listHead)) {
|
|
@@ -7608,7 +7609,8 @@ const DEFAULT_LIST_TYPE = 'default';
|
|
|
7608
7609
|
listIndent: nextSibling.getAttribute('listIndent')
|
|
7609
7610
|
});
|
|
7610
7611
|
// The outermost list item may not exist while removing elements between lists with different value
|
|
7611
|
-
// of the `listIndent` attribute. In such a case we don't want to update anything.
|
|
7612
|
+
// of the `listIndent` attribute. In such a case we don't want to update anything.
|
|
7613
|
+
// See: https://github.com/ckeditor/ckeditor5/issues/8073.
|
|
7612
7614
|
if (!mostOuterItemList) {
|
|
7613
7615
|
return;
|
|
7614
7616
|
}
|
|
@@ -7637,7 +7639,7 @@ const DEFAULT_LIST_TYPE = 'default';
|
|
|
7637
7639
|
direction: 'forward'
|
|
7638
7640
|
});
|
|
7639
7641
|
// If the selection ends in a non-list element, there are no <listItem>s that would require adjustments.
|
|
7640
|
-
// See:
|
|
7642
|
+
// See: https://github.com/ckeditor/ckeditor5/issues/8642.
|
|
7641
7643
|
if (!secondListMostOuterItem) {
|
|
7642
7644
|
firstMostOuterItem = null;
|
|
7643
7645
|
return;
|
|
@@ -7973,7 +7975,8 @@ const DEFAULT_LIST_TYPE = 'default';
|
|
|
7973
7975
|
// ■ Paragraph[] // <-- The inserted item.
|
|
7974
7976
|
while(existingListItem.is('element', 'listItem') && existingListItem.getAttribute('listIndent') !== indent){
|
|
7975
7977
|
existingListItem = existingListItem.previousSibling;
|
|
7976
|
-
// If the item does not exist, most probably there is no other content in the editor.
|
|
7978
|
+
// If the item does not exist, most probably there is no other content in the editor.
|
|
7979
|
+
// See: https://github.com/ckeditor/ckeditor5/issues/8072.
|
|
7977
7980
|
if (!existingListItem) {
|
|
7978
7981
|
break;
|
|
7979
7982
|
}
|
|
@@ -7996,7 +7999,7 @@ const DEFAULT_LIST_TYPE = 'default';
|
|
|
7996
7999
|
wasFixed = true;
|
|
7997
8000
|
} else {
|
|
7998
8001
|
// Adjust the `listStyle`, `listReversed` and `listStart`
|
|
7999
|
-
// attributes for inserted (pasted) items. See
|
|
8002
|
+
// attributes for inserted (pasted) items. See https://github.com/ckeditor/ckeditor5/issues/8160.
|
|
8000
8003
|
//
|
|
8001
8004
|
// ■ List item 1. // [listStyle="square", listType="bulleted"]
|
|
8002
8005
|
// ○ List item 1.1. // [listStyle="circle", listType="bulleted"]
|