@ckeditor/ckeditor5-list 46.0.0-alpha.5 → 46.0.0-alpha.7
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/build/list.js +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
- package/src/listformatting.js +6 -1
package/dist/index.js
CHANGED
|
@@ -1661,7 +1661,7 @@ import { DomEventObserver, Matcher, ModelTreeWalker, getViewFillerOffset } from
|
|
|
1661
1661
|
let returnValue = false;
|
|
1662
1662
|
for (const entry of changes){
|
|
1663
1663
|
if (entry.type === 'attribute') {
|
|
1664
|
-
if (entry.attributeKey == 'listItemId' || entry.attributeKey == 'listType' || this._isInlineOrSelectionFormatting(entry.attributeKey)) {
|
|
1664
|
+
if (entry.attributeKey == 'listItemId' || entry.attributeKey == 'listType' || this._isInlineOrSelectionFormatting(entry.attributeKey) || Object.values(this._loadedFormatting).includes(entry.attributeKey)) {
|
|
1665
1665
|
if (isListItemBlock(entry.range.start.nodeAfter)) {
|
|
1666
1666
|
modifiedListItems.add(entry.range.start.nodeAfter);
|
|
1667
1667
|
} else if (isListItemBlock(entry.range.start.parent)) {
|
|
@@ -1766,6 +1766,9 @@ import { DomEventObserver, Matcher, ModelTreeWalker, getViewFillerOffset } from
|
|
|
1766
1766
|
attributesToCheck.delete(attributeKey);
|
|
1767
1767
|
valuesMap[attributeKey] = undefined;
|
|
1768
1768
|
}
|
|
1769
|
+
} else if (!(attributeKey in valuesMap)) {
|
|
1770
|
+
// Store it so a format would be removed when all items in the given list item does not allow that formatting.
|
|
1771
|
+
valuesMap[attributeKey] = undefined;
|
|
1769
1772
|
}
|
|
1770
1773
|
}
|
|
1771
1774
|
// End early if all attributes have been checked and are inconsistent.
|