@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.
- package/LICENSE.md +1 -1
- package/build/list.js +2 -2
- package/package.json +43 -39
- package/src/documentlist/converters.js +303 -419
- package/src/documentlist/documentlistcommand.js +136 -207
- package/src/documentlist/documentlistediting.js +538 -698
- package/src/documentlist/documentlistindentcommand.js +115 -168
- package/src/documentlist/documentlistmergecommand.js +161 -222
- package/src/documentlist/documentlistsplitcommand.js +59 -103
- package/src/documentlist/documentlistutils.js +31 -45
- package/src/documentlist/utils/listwalker.js +138 -236
- package/src/documentlist/utils/model.js +322 -421
- package/src/documentlist/utils/postfixers.js +98 -126
- package/src/documentlist/utils/view.js +74 -105
- package/src/documentlist.js +13 -19
- package/src/documentlistproperties/converters.js +33 -47
- package/src/documentlistproperties/documentlistpropertiesediting.js +265 -356
- package/src/documentlistproperties/documentlistpropertiesutils.js +32 -57
- package/src/documentlistproperties/documentlistreversedcommand.js +40 -61
- package/src/documentlistproperties/documentliststartcommand.js +42 -61
- package/src/documentlistproperties/documentliststylecommand.js +97 -147
- package/src/documentlistproperties/utils/style.js +27 -47
- package/src/documentlistproperties.js +13 -19
- package/src/index.js +1 -3
- package/src/list/converters.js +772 -929
- package/src/list/indentcommand.js +105 -140
- package/src/list/listcommand.js +262 -315
- package/src/list/listediting.js +141 -200
- package/src/list/listui.js +16 -25
- package/src/list/listutils.js +37 -59
- package/src/list/utils.js +295 -378
- package/src/list.js +13 -44
- package/src/listcommands.js +5 -0
- package/src/listconfig.js +5 -0
- package/src/listproperties/listpropertiesediting.js +656 -803
- package/src/listproperties/listpropertiesui.js +244 -296
- package/src/listproperties/listreversedcommand.js +37 -49
- package/src/listproperties/liststartcommand.js +37 -49
- package/src/listproperties/liststylecommand.js +82 -115
- package/src/listproperties/ui/collapsibleview.js +75 -138
- package/src/listproperties/ui/listpropertiesview.js +289 -415
- package/src/listproperties.js +13 -118
- package/src/liststyle.js +18 -24
- package/src/todolist/checktodolistcommand.js +60 -102
- package/src/todolist/todolistconverters.js +189 -271
- package/src/todolist/todolistediting.js +141 -206
- package/src/todolist/todolistui.js +14 -21
- package/src/todolist.js +13 -19
- package/theme/collapsible.css +1 -1
- package/theme/documentlist.css +1 -1
- package/theme/list.css +40 -0
- package/theme/listproperties.css +1 -1
- package/theme/liststyles.css +1 -37
- package/theme/todolist.css +1 -1
|
@@ -1,33 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
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
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
}
|
package/theme/collapsible.css
CHANGED
package/theme/documentlist.css
CHANGED
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
|
+
}
|
package/theme/listproperties.css
CHANGED
package/theme/liststyles.css
CHANGED
|
@@ -1,44 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
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
|
-
}
|
package/theme/todolist.css
CHANGED