@ckeditor/ckeditor5-list 35.4.0 → 36.0.1

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.
Files changed (54) hide show
  1. package/LICENSE.md +1 -1
  2. package/build/list.js +2 -2
  3. package/package.json +43 -39
  4. package/src/documentlist/converters.js +303 -419
  5. package/src/documentlist/documentlistcommand.js +136 -207
  6. package/src/documentlist/documentlistediting.js +538 -698
  7. package/src/documentlist/documentlistindentcommand.js +115 -168
  8. package/src/documentlist/documentlistmergecommand.js +161 -222
  9. package/src/documentlist/documentlistsplitcommand.js +59 -103
  10. package/src/documentlist/documentlistutils.js +31 -45
  11. package/src/documentlist/utils/listwalker.js +138 -236
  12. package/src/documentlist/utils/model.js +322 -421
  13. package/src/documentlist/utils/postfixers.js +98 -126
  14. package/src/documentlist/utils/view.js +74 -105
  15. package/src/documentlist.js +13 -19
  16. package/src/documentlistproperties/converters.js +33 -47
  17. package/src/documentlistproperties/documentlistpropertiesediting.js +265 -356
  18. package/src/documentlistproperties/documentlistpropertiesutils.js +32 -57
  19. package/src/documentlistproperties/documentlistreversedcommand.js +40 -61
  20. package/src/documentlistproperties/documentliststartcommand.js +42 -61
  21. package/src/documentlistproperties/documentliststylecommand.js +97 -147
  22. package/src/documentlistproperties/utils/style.js +27 -47
  23. package/src/documentlistproperties.js +13 -19
  24. package/src/index.js +1 -3
  25. package/src/list/converters.js +772 -929
  26. package/src/list/indentcommand.js +105 -140
  27. package/src/list/listcommand.js +262 -315
  28. package/src/list/listediting.js +141 -200
  29. package/src/list/listui.js +16 -25
  30. package/src/list/listutils.js +37 -59
  31. package/src/list/utils.js +295 -378
  32. package/src/list.js +13 -44
  33. package/src/listcommands.js +5 -0
  34. package/src/listconfig.js +5 -0
  35. package/src/listproperties/listpropertiesediting.js +656 -803
  36. package/src/listproperties/listpropertiesui.js +244 -296
  37. package/src/listproperties/listreversedcommand.js +37 -49
  38. package/src/listproperties/liststartcommand.js +37 -49
  39. package/src/listproperties/liststylecommand.js +82 -115
  40. package/src/listproperties/ui/collapsibleview.js +75 -138
  41. package/src/listproperties/ui/listpropertiesview.js +289 -415
  42. package/src/listproperties.js +13 -118
  43. package/src/liststyle.js +18 -24
  44. package/src/todolist/checktodolistcommand.js +60 -102
  45. package/src/todolist/todolistconverters.js +189 -271
  46. package/src/todolist/todolistediting.js +141 -206
  47. package/src/todolist/todolistui.js +14 -21
  48. package/src/todolist.js +13 -19
  49. package/theme/collapsible.css +1 -1
  50. package/theme/documentlist.css +1 -1
  51. package/theme/list.css +40 -0
  52. package/theme/listproperties.css +1 -1
  53. package/theme/liststyles.css +1 -37
  54. package/theme/todolist.css +1 -1
@@ -1,33 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
-
6
- /**
7
- * @module list/todolist/todolistediting
8
- */
9
-
10
5
  import { Plugin } from 'ckeditor5/src/core';
11
- import {
12
- getCode,
13
- parseKeystroke,
14
- getLocalizedArrowKeyCodeDirection
15
- } from 'ckeditor5/src/utils';
16
-
6
+ import { getCode, parseKeystroke, getLocalizedArrowKeyCodeDirection } from 'ckeditor5/src/utils';
17
7
  import ListCommand from '../list/listcommand';
18
8
  import ListEditing from '../list/listediting';
19
9
  import CheckTodoListCommand from './checktodolistcommand';
20
- import {
21
- dataModelViewInsertion,
22
- dataViewModelCheckmarkInsertion,
23
- mapModelToViewPosition,
24
- modelViewChangeChecked,
25
- modelViewChangeType,
26
- modelViewInsertion
27
- } from './todolistconverters';
28
-
29
- const ITEM_TOGGLE_KEYSTROKE = parseKeystroke( 'Ctrl+Enter' );
30
-
10
+ import { dataModelViewInsertion, dataViewModelCheckmarkInsertion, mapModelToViewPosition, modelViewChangeChecked, modelViewChangeType, modelViewInsertion } from './todolistconverters';
11
+ const ITEM_TOGGLE_KEYSTROKE = parseKeystroke('Ctrl+Enter');
31
12
  /**
32
13
  * The engine of the to-do list feature. It handles creating, editing and removing to-do lists and their items.
33
14
  *
@@ -37,190 +18,144 @@ const ITEM_TOGGLE_KEYSTROKE = parseKeystroke( 'Ctrl+Enter' );
37
18
  * - `'todoList'`,
38
19
  * - `'checkTodoList'`,
39
20
  * - `'todoListCheck'` as an alias for `checkTodoList` command.
40
- *
41
- * @extends module:core/plugin~Plugin
42
21
  */
43
22
  export default class TodoListEditing extends Plugin {
44
- /**
45
- * @inheritDoc
46
- */
47
- static get pluginName() {
48
- return 'TodoListEditing';
49
- }
50
-
51
- /**
52
- * @inheritDoc
53
- */
54
- static get requires() {
55
- return [ ListEditing ];
56
- }
57
-
58
- /**
59
- * @inheritDoc
60
- */
61
- init() {
62
- const editor = this.editor;
63
- const { editing, data, model } = editor;
64
-
65
- // Extend schema.
66
- model.schema.extend( 'listItem', {
67
- allowAttributes: [ 'todoListChecked' ]
68
- } );
69
-
70
- // Disallow todoListChecked attribute on other nodes than listItem with to-do listType.
71
- model.schema.addAttributeCheck( ( context, attributeName ) => {
72
- const item = context.last;
73
-
74
- if ( attributeName == 'todoListChecked' && item.name == 'listItem' && item.getAttribute( 'listType' ) != 'todo' ) {
75
- return false;
76
- }
77
- } );
78
-
79
- // Register `todoList` command.
80
- editor.commands.add( 'todoList', new ListCommand( editor, 'todo' ) );
81
-
82
- const checkTodoListCommand = new CheckTodoListCommand( editor );
83
-
84
- // Register `checkTodoList` command and add `todoListCheck` command as an alias for backward compatibility.
85
- editor.commands.add( 'checkTodoList', checkTodoListCommand );
86
- editor.commands.add( 'todoListCheck', checkTodoListCommand );
87
-
88
- // Define converters.
89
- data.downcastDispatcher.on( 'insert:listItem', dataModelViewInsertion( model ), { priority: 'high' } );
90
- data.upcastDispatcher.on( 'element:input', dataViewModelCheckmarkInsertion, { priority: 'high' } );
91
-
92
- editing.downcastDispatcher.on(
93
- 'insert:listItem',
94
- modelViewInsertion( model, listItem => this._handleCheckmarkChange( listItem ) ),
95
- { priority: 'high' }
96
- );
97
- editing.downcastDispatcher.on(
98
- 'attribute:listType:listItem',
99
- modelViewChangeType( listItem => this._handleCheckmarkChange( listItem ), editing.view )
100
- );
101
- editing.downcastDispatcher.on(
102
- 'attribute:todoListChecked:listItem',
103
- modelViewChangeChecked( listItem => this._handleCheckmarkChange( listItem ) )
104
- );
105
-
106
- editing.mapper.on( 'modelToViewPosition', mapModelToViewPosition( editing.view ) );
107
- data.mapper.on( 'modelToViewPosition', mapModelToViewPosition( editing.view ) );
108
-
109
- // Jump at the end of the previous node on left arrow key press, when selection is after the checkbox.
110
- //
111
- // <blockquote><p>Foo</p></blockquote>
112
- // <ul><li><checkbox/>{}Bar</li></ul>
113
- //
114
- // press: `<-`
115
- //
116
- // <blockquote><p>Foo{}</p></blockquote>
117
- // <ul><li><checkbox/>Bar</li></ul>
118
- //
119
- this.listenTo( editing.view.document, 'arrowKey', jumpOverCheckmarkOnSideArrowKeyPress( model, editor.locale ), { context: 'li' } );
120
-
121
- // Toggle check state of selected to-do list items on keystroke.
122
- this.listenTo( editing.view.document, 'keydown', ( evt, data ) => {
123
- if ( getCode( data ) === ITEM_TOGGLE_KEYSTROKE ) {
124
- editor.execute( 'checkTodoList' );
125
- evt.stop();
126
- }
127
- }, { priority: 'high' } );
128
-
129
- // Remove `todoListChecked` attribute when a host element is no longer a to-do list item.
130
- const listItemsToFix = new Set();
131
-
132
- this.listenTo( model, 'applyOperation', ( evt, args ) => {
133
- const operation = args[ 0 ];
134
-
135
- if ( operation.type == 'rename' && operation.oldName == 'listItem' ) {
136
- const item = operation.position.nodeAfter;
137
-
138
- if ( item.hasAttribute( 'todoListChecked' ) ) {
139
- listItemsToFix.add( item );
140
- }
141
- } else if ( operation.type == 'changeAttribute' && operation.key == 'listType' && operation.oldValue === 'todo' ) {
142
- for ( const item of operation.range.getItems() ) {
143
- if ( item.hasAttribute( 'todoListChecked' ) && item.getAttribute( 'listType' ) !== 'todo' ) {
144
- listItemsToFix.add( item );
145
- }
146
- }
147
- }
148
- } );
149
-
150
- model.document.registerPostFixer( writer => {
151
- let hasChanged = false;
152
-
153
- for ( const listItem of listItemsToFix ) {
154
- writer.removeAttribute( 'todoListChecked', listItem );
155
- hasChanged = true;
156
- }
157
-
158
- listItemsToFix.clear();
159
-
160
- return hasChanged;
161
- } );
162
- }
163
-
164
- /**
165
- * Handles the checkbox element change, moves the selection to the corresponding model item to make it possible
166
- * to toggle the `todoListChecked` attribute using the command, and restores the selection position.
167
- *
168
- * Some say it's a hack :) Moving the selection only for executing the command on a certain node and restoring it after,
169
- * is not a clear solution. We need to design an API for using commands beyond the selection range.
170
- * See https://github.com/ckeditor/ckeditor5/issues/1954.
171
- *
172
- * @private
173
- * @param {module:engine/model/element~Element} listItem
174
- */
175
- _handleCheckmarkChange( listItem ) {
176
- const editor = this.editor;
177
- const model = editor.model;
178
- const previousSelectionRanges = Array.from( model.document.selection.getRanges() );
179
-
180
- model.change( writer => {
181
- writer.setSelection( listItem, 'end' );
182
- editor.execute( 'checkTodoList' );
183
- writer.setSelection( previousSelectionRanges );
184
- } );
185
- }
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ static get pluginName() {
27
+ return 'TodoListEditing';
28
+ }
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ static get requires() {
33
+ return [ListEditing];
34
+ }
35
+ /**
36
+ * @inheritDoc
37
+ */
38
+ init() {
39
+ const editor = this.editor;
40
+ const { editing, data, model } = editor;
41
+ // Extend schema.
42
+ model.schema.extend('listItem', {
43
+ allowAttributes: ['todoListChecked']
44
+ });
45
+ // Disallow todoListChecked attribute on other nodes than listItem with to-do listType.
46
+ model.schema.addAttributeCheck((context, attributeName) => {
47
+ const item = context.last;
48
+ if (attributeName == 'todoListChecked' && item.name == 'listItem' && item.getAttribute('listType') != 'todo') {
49
+ return false;
50
+ }
51
+ });
52
+ // Register `todoList` command.
53
+ editor.commands.add('todoList', new ListCommand(editor, 'todo'));
54
+ const checkTodoListCommand = new CheckTodoListCommand(editor);
55
+ // Register `checkTodoList` command and add `todoListCheck` command as an alias for backward compatibility.
56
+ editor.commands.add('checkTodoList', checkTodoListCommand);
57
+ editor.commands.add('todoListCheck', checkTodoListCommand);
58
+ // Define converters.
59
+ data.downcastDispatcher.on('insert:listItem', dataModelViewInsertion(model), { priority: 'high' });
60
+ data.upcastDispatcher.on('element:input', dataViewModelCheckmarkInsertion, { priority: 'high' });
61
+ editing.downcastDispatcher.on('insert:listItem', modelViewInsertion(model, listItem => this._handleCheckmarkChange(listItem)), { priority: 'high' });
62
+ editing.downcastDispatcher.on('attribute:listType:listItem', modelViewChangeType(listItem => this._handleCheckmarkChange(listItem), editing.view));
63
+ editing.downcastDispatcher.on('attribute:todoListChecked:listItem', modelViewChangeChecked(listItem => this._handleCheckmarkChange(listItem)));
64
+ editing.mapper.on('modelToViewPosition', mapModelToViewPosition(editing.view));
65
+ data.mapper.on('modelToViewPosition', mapModelToViewPosition(editing.view));
66
+ // Jump at the end of the previous node on left arrow key press, when selection is after the checkbox.
67
+ //
68
+ // <blockquote><p>Foo</p></blockquote>
69
+ // <ul><li><checkbox/>{}Bar</li></ul>
70
+ //
71
+ // press: `<-`
72
+ //
73
+ // <blockquote><p>Foo{}</p></blockquote>
74
+ // <ul><li><checkbox/>Bar</li></ul>
75
+ //
76
+ this.listenTo(editing.view.document, 'arrowKey', jumpOverCheckmarkOnSideArrowKeyPress(model, editor.locale), { context: 'li' });
77
+ // Toggle check state of selected to-do list items on keystroke.
78
+ this.listenTo(editing.view.document, 'keydown', (evt, data) => {
79
+ if (getCode(data) === ITEM_TOGGLE_KEYSTROKE) {
80
+ editor.execute('checkTodoList');
81
+ evt.stop();
82
+ }
83
+ }, { priority: 'high' });
84
+ // Remove `todoListChecked` attribute when a host element is no longer a to-do list item.
85
+ const listItemsToFix = new Set();
86
+ this.listenTo(model, 'applyOperation', (evt, args) => {
87
+ const operation = args[0];
88
+ if (operation.type == 'rename' && operation.oldName == 'listItem') {
89
+ const item = operation.position.nodeAfter;
90
+ if (item.hasAttribute('todoListChecked')) {
91
+ listItemsToFix.add(item);
92
+ }
93
+ }
94
+ else if (operation.type == 'changeAttribute' && operation.key == 'listType' && operation.oldValue === 'todo') {
95
+ for (const item of operation.range.getItems()) {
96
+ if (item.hasAttribute('todoListChecked') && item.getAttribute('listType') !== 'todo') {
97
+ listItemsToFix.add(item);
98
+ }
99
+ }
100
+ }
101
+ });
102
+ model.document.registerPostFixer(writer => {
103
+ let hasChanged = false;
104
+ for (const listItem of listItemsToFix) {
105
+ writer.removeAttribute('todoListChecked', listItem);
106
+ hasChanged = true;
107
+ }
108
+ listItemsToFix.clear();
109
+ return hasChanged;
110
+ });
111
+ }
112
+ /**
113
+ * Handles the checkbox element change, moves the selection to the corresponding model item to make it possible
114
+ * to toggle the `todoListChecked` attribute using the command, and restores the selection position.
115
+ *
116
+ * Some say it's a hack :) Moving the selection only for executing the command on a certain node and restoring it after,
117
+ * is not a clear solution. We need to design an API for using commands beyond the selection range.
118
+ * See https://github.com/ckeditor/ckeditor5/issues/1954.
119
+ */
120
+ _handleCheckmarkChange(listItem) {
121
+ const editor = this.editor;
122
+ const model = editor.model;
123
+ const previousSelectionRanges = Array.from(model.document.selection.getRanges());
124
+ model.change(writer => {
125
+ writer.setSelection(listItem, 'end');
126
+ editor.execute('checkTodoList');
127
+ writer.setSelection(previousSelectionRanges);
128
+ });
129
+ }
186
130
  }
187
-
188
- // Handles the left/right (LTR/RTL content) arrow key and moves the selection at the end of the previous block element
189
- // if the selection is just after the checkbox element. In other words, it jumps over the checkbox element when
190
- // moving the selection to the left/right (LTR/RTL).
191
- //
192
- // @private
193
- // @param {module:engine/model/model~Model} model
194
- // @param {module:utils/locale~Locale} locale
195
- // @returns {Function} Callback for 'keydown' events.
196
- function jumpOverCheckmarkOnSideArrowKeyPress( model, locale ) {
197
- return ( eventInfo, domEventData ) => {
198
- const direction = getLocalizedArrowKeyCodeDirection( domEventData.keyCode, locale.contentLanguageDirection );
199
-
200
- if ( direction != 'left' ) {
201
- return;
202
- }
203
-
204
- const schema = model.schema;
205
- const selection = model.document.selection;
206
-
207
- if ( !selection.isCollapsed ) {
208
- return;
209
- }
210
-
211
- const position = selection.getFirstPosition();
212
- const parent = position.parent;
213
-
214
- if ( parent.name === 'listItem' && parent.getAttribute( 'listType' ) == 'todo' && position.isAtStart ) {
215
- const newRange = schema.getNearestSelectionRange( model.createPositionBefore( parent ), 'backward' );
216
-
217
- if ( newRange ) {
218
- model.change( writer => writer.setSelection( newRange ) );
219
- }
220
-
221
- domEventData.preventDefault();
222
- domEventData.stopPropagation();
223
- eventInfo.stop();
224
- }
225
- };
131
+ /**
132
+ * Handles the left/right (LTR/RTL content) arrow key and moves the selection at the end of the previous block element
133
+ * if the selection is just after the checkbox element. In other words, it jumps over the checkbox element when
134
+ * moving the selection to the left/right (LTR/RTL).
135
+ *
136
+ * @returns Callback for 'keydown' events.
137
+ */
138
+ function jumpOverCheckmarkOnSideArrowKeyPress(model, locale) {
139
+ return (eventInfo, domEventData) => {
140
+ const direction = getLocalizedArrowKeyCodeDirection(domEventData.keyCode, locale.contentLanguageDirection);
141
+ if (direction != 'left') {
142
+ return;
143
+ }
144
+ const schema = model.schema;
145
+ const selection = model.document.selection;
146
+ if (!selection.isCollapsed) {
147
+ return;
148
+ }
149
+ const position = selection.getFirstPosition();
150
+ const parent = position.parent;
151
+ if (parent.name === 'listItem' && parent.getAttribute('listType') == 'todo' && position.isAtStart) {
152
+ const newRange = schema.getNearestSelectionRange(model.createPositionBefore(parent), 'backward');
153
+ if (newRange) {
154
+ model.change(writer => writer.setSelection(newRange));
155
+ }
156
+ domEventData.preventDefault();
157
+ domEventData.stopPropagation();
158
+ eventInfo.stop();
159
+ }
160
+ };
226
161
  }
@@ -1,36 +1,29 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
-
6
5
  /**
7
6
  * @module list/todolist/todolistui
8
7
  */
9
-
10
8
  import { createUIComponent } from '../list/utils';
11
9
  import todoListIcon from '../../theme/icons/todolist.svg';
12
10
  import { Plugin } from 'ckeditor5/src/core';
13
-
14
11
  /**
15
12
  * The to-do list UI feature. It introduces the `'todoList'` button that
16
13
  * allows to convert elements to and from to-do list items and to indent or outdent them.
17
- *
18
- * @extends module:core/plugin~Plugin
19
14
  */
20
15
  export default class TodoListUI extends Plugin {
21
- /**
22
- * @inheritDoc
23
- */
24
- static get pluginName() {
25
- return 'TodoListUI';
26
- }
27
-
28
- /**
29
- * @inheritDoc
30
- */
31
- init() {
32
- const t = this.editor.t;
33
-
34
- createUIComponent( this.editor, 'todoList', t( 'To-do List' ), todoListIcon );
35
- }
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get pluginName() {
20
+ return 'TodoListUI';
21
+ }
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ init() {
26
+ const t = this.editor.t;
27
+ createUIComponent(this.editor, 'todoList', t('To-do List'), todoListIcon);
28
+ }
36
29
  }
package/src/todolist.js CHANGED
@@ -1,37 +1,31 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
-
6
5
  /**
7
6
  * @module list/todolist
8
7
  */
9
-
10
8
  import TodoListEditing from './todolist/todolistediting';
11
9
  import TodoListUI from './todolist/todolistui';
12
10
  import { Plugin } from 'ckeditor5/src/core';
13
11
  import '../theme/todolist.css';
14
-
15
12
  /**
16
13
  * The to-do list feature.
17
14
  *
18
15
  * This is a "glue" plugin that loads the {@link module:list/todolist/todolistediting~TodoListEditing to-do list editing feature}
19
16
  * and the {@link module:list/todolist/todolistui~TodoListUI to-do list UI feature}.
20
- *
21
- * @extends module:core/plugin~Plugin
22
17
  */
23
18
  export default class TodoList extends Plugin {
24
- /**
25
- * @inheritDoc
26
- */
27
- static get requires() {
28
- return [ TodoListEditing, TodoListUI ];
29
- }
30
-
31
- /**
32
- * @inheritDoc
33
- */
34
- static get pluginName() {
35
- return 'TodoList';
36
- }
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ static get requires() {
23
+ return [TodoListEditing, TodoListUI];
24
+ }
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get pluginName() {
29
+ return 'TodoList';
30
+ }
37
31
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
 
package/theme/list.css ADDED
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ .ck-content ol {
7
+ list-style-type: decimal;
8
+
9
+ & ol {
10
+ list-style-type: lower-latin;
11
+
12
+ & ol {
13
+ list-style-type: lower-roman;
14
+
15
+ & ol {
16
+ list-style-type: upper-latin;
17
+
18
+ & ol {
19
+ list-style-type: upper-roman;
20
+ }
21
+ }
22
+ }
23
+ }
24
+ }
25
+
26
+ .ck-content ul {
27
+ list-style-type: disc;
28
+
29
+ & ul {
30
+ list-style-type: circle;
31
+
32
+ & ul {
33
+ list-style-type: square;
34
+
35
+ & ul {
36
+ list-style-type: square;
37
+ }
38
+ }
39
+ }
40
+ }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
 
@@ -1,44 +1,8 @@
1
1
  /*
2
- * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
 
6
6
  .ck.ck-list-styles-list {
7
7
  display: grid;
8
8
  }
9
-
10
- .ck-content ol {
11
- list-style-type: decimal;
12
-
13
- & ol {
14
- list-style-type: lower-latin;
15
-
16
- & ol {
17
- list-style-type: lower-roman;
18
-
19
- & ol {
20
- list-style-type: upper-latin;
21
-
22
- & ol {
23
- list-style-type: upper-roman;
24
- }
25
- }
26
- }
27
- }
28
- }
29
-
30
- .ck-content ul {
31
- list-style-type: circle;
32
-
33
- & ul {
34
- list-style-type: disc;
35
-
36
- & ul {
37
- list-style-type: square;
38
-
39
- & ul {
40
- list-style-type: square;
41
- }
42
- }
43
- }
44
- }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5