@ckeditor/ckeditor5-list 45.2.1 → 46.0.0-alpha.0
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-content.css +50 -8
- package/dist/index-editor.css +14 -8
- package/dist/index.css +62 -15
- package/dist/index.css.map +1 -1
- package/dist/index.js +736 -135
- package/dist/index.js.map +1 -1
- package/package.json +11 -10
- package/src/augmentation.d.ts +8 -5
- package/src/index.d.ts +61 -37
- package/src/index.js +53 -25
- package/src/legacyerrors.d.ts +5 -0
- package/src/legacyerrors.js +28 -0
- package/src/legacylist/legacyconverters.d.ts +23 -7
- package/src/legacylist/legacyconverters.js +18 -2
- package/src/legacylist/legacyindentcommand.d.ts +1 -1
- package/src/legacylist/legacyindentcommand.js +1 -1
- package/src/legacylist/legacylistcommand.d.ts +1 -1
- package/src/legacylist/legacylistcommand.js +1 -1
- package/src/legacylist/legacylistediting.d.ts +2 -2
- package/src/legacylist/legacylistediting.js +4 -4
- package/src/legacylist/legacylistutils.d.ts +4 -4
- package/src/legacylist/legacylistutils.js +1 -1
- package/src/legacylist/legacyutils.d.ts +21 -10
- package/src/legacylist/legacyutils.js +14 -4
- package/src/legacylist.d.ts +3 -3
- package/src/legacylist.js +3 -3
- package/src/legacylistproperties/legacylistpropertiesediting.d.ts +2 -2
- package/src/legacylistproperties/legacylistpropertiesediting.js +5 -5
- package/src/legacylistproperties/legacylistreversedcommand.d.ts +1 -1
- package/src/legacylistproperties/legacylistreversedcommand.js +1 -1
- package/src/legacylistproperties/legacyliststartcommand.d.ts +1 -1
- package/src/legacylistproperties/legacyliststartcommand.js +1 -1
- package/src/legacylistproperties/legacyliststylecommand.d.ts +1 -1
- package/src/legacylistproperties/legacyliststylecommand.js +1 -1
- package/src/legacylistproperties.d.ts +3 -3
- package/src/legacylistproperties.js +3 -3
- package/src/legacytodolist/legacychecktodolistcommand.d.ts +6 -6
- package/src/legacytodolist/legacychecktodolistcommand.js +3 -3
- package/src/legacytodolist/legacytodolistconverters.d.ts +15 -8
- package/src/legacytodolist/legacytodolistconverters.js +10 -3
- package/src/legacytodolist/legacytodolistediting.d.ts +2 -2
- package/src/legacytodolist/legacytodolistediting.js +4 -4
- package/src/legacytodolist.d.ts +3 -3
- package/src/legacytodolist.js +3 -3
- package/src/list/adjacentlistssupport.d.ts +1 -1
- package/src/list/adjacentlistssupport.js +1 -1
- package/src/list/converters.d.ts +9 -5
- package/src/list/converters.js +12 -7
- package/src/list/listcommand.d.ts +3 -3
- package/src/list/listcommand.js +1 -1
- package/src/list/listediting.d.ts +21 -17
- package/src/list/listediting.js +28 -11
- package/src/list/listindentcommand.d.ts +3 -3
- package/src/list/listindentcommand.js +2 -2
- package/src/list/listmergecommand.d.ts +3 -3
- package/src/list/listmergecommand.js +2 -2
- package/src/list/listsplitcommand.d.ts +3 -3
- package/src/list/listsplitcommand.js +1 -1
- package/src/list/listui.d.ts +1 -1
- package/src/list/listui.js +1 -1
- package/src/list/listutils.d.ts +7 -7
- package/src/list/listutils.js +1 -1
- package/src/list/utils/listwalker.d.ts +12 -6
- package/src/list/utils/listwalker.js +5 -1
- package/src/list/utils/model.d.ts +25 -22
- package/src/list/utils/model.js +7 -2
- package/src/list/utils/postfixers.d.ts +4 -4
- package/src/list/utils/view.d.ts +3 -3
- package/src/list.d.ts +3 -3
- package/src/list.js +3 -3
- package/src/listconfig.d.ts +13 -0
- package/src/listformatting/listitemboldintegration.d.ts +34 -0
- package/src/listformatting/listitemboldintegration.js +83 -0
- package/src/listformatting/listitemfontcolorintegration.d.ts +34 -0
- package/src/listformatting/listitemfontcolorintegration.js +92 -0
- package/src/listformatting/listitemfontfamilyintegration.d.ts +34 -0
- package/src/listformatting/listitemfontfamilyintegration.js +93 -0
- package/src/listformatting/listitemfontsizeintegration.d.ts +34 -0
- package/src/listformatting/listitemfontsizeintegration.js +119 -0
- package/src/listformatting/listitemitalicintegration.d.ts +34 -0
- package/src/listformatting/listitemitalicintegration.js +83 -0
- package/src/listformatting.d.ts +71 -0
- package/src/listformatting.js +243 -0
- package/src/listproperties/listpropertiesediting.d.ts +7 -7
- package/src/listproperties/listpropertiesediting.js +6 -6
- package/src/listproperties/listpropertiesui.d.ts +1 -1
- package/src/listproperties/listpropertiesui.js +2 -2
- package/src/listproperties/listpropertiesutils.d.ts +1 -1
- package/src/listproperties/listpropertiesutils.js +1 -1
- package/src/listproperties/listreversedcommand.d.ts +1 -1
- package/src/listproperties/listreversedcommand.js +1 -1
- package/src/listproperties/liststartcommand.d.ts +1 -1
- package/src/listproperties/liststartcommand.js +1 -1
- package/src/listproperties/liststylecommand.d.ts +1 -1
- package/src/listproperties/liststylecommand.js +1 -1
- package/src/listproperties/ui/listpropertiesview.d.ts +6 -1
- package/src/listproperties/ui/listpropertiesview.js +1 -1
- package/src/listproperties/utils/config.d.ts +3 -0
- package/src/listproperties/utils/config.js +1 -0
- package/src/listproperties/utils/style.d.ts +9 -0
- package/src/listproperties/utils/style.js +9 -0
- package/src/listproperties.d.ts +3 -3
- package/src/listproperties.js +3 -3
- package/src/todolist/checktodolistcommand.d.ts +3 -3
- package/src/todolist/checktodolistcommand.js +2 -2
- package/src/todolist/todocheckboxchangeobserver.d.ts +8 -6
- package/src/todolist/todocheckboxchangeobserver.js +4 -2
- package/src/todolist/todolistediting.d.ts +2 -2
- package/src/todolist/todolistediting.js +5 -5
- package/src/todolist/todolistui.d.ts +1 -1
- package/src/todolist/todolistui.js +1 -1
- package/src/todolist.d.ts +3 -3
- package/src/todolist.js +3 -3
- package/theme/listformatting.css +48 -0
- package/theme/todolist.css +8 -8
- package/src/documentlist.d.ts +0 -32
- package/src/documentlist.js +0 -47
- package/src/documentlistproperties.d.ts +0 -32
- package/src/documentlistproperties.js +0 -47
- package/src/tododocumentlist.d.ts +0 -32
- package/src/tododocumentlist.js +0 -47
|
@@ -5,14 +5,16 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module list/todolist/todocheckboxchangeobserver
|
|
7
7
|
*/
|
|
8
|
-
import { DomEventObserver, type
|
|
8
|
+
import { DomEventObserver, type ViewDocumentDomEventData } from 'ckeditor5/src/engine.js';
|
|
9
9
|
/**
|
|
10
10
|
* Observes all to-do list checkboxes state changes.
|
|
11
11
|
*
|
|
12
12
|
* Note that this observer is not available by default. To make it available it needs to be added to
|
|
13
|
-
* {@link module:engine/view/view~
|
|
13
|
+
* {@link module:engine/view/view~EditingView} by {@link module:engine/view/view~EditingView#addObserver} method.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
14
16
|
*/
|
|
15
|
-
export
|
|
17
|
+
export declare class TodoCheckboxChangeObserver extends DomEventObserver<'change'> {
|
|
16
18
|
/**
|
|
17
19
|
* @inheritDoc
|
|
18
20
|
*/
|
|
@@ -29,13 +31,13 @@ export default class TodoCheckboxChangeObserver extends DomEventObserver<'change
|
|
|
29
31
|
*
|
|
30
32
|
* Note that this event is not available by default. To make it available,
|
|
31
33
|
* {@link module:list/todolist/todocheckboxchangeobserver~TodoCheckboxChangeObserver}
|
|
32
|
-
* needs to be added to {@link module:engine/view/view~
|
|
34
|
+
* needs to be added to {@link module:engine/view/view~EditingView} by the {@link module:engine/view/view~EditingView#addObserver} method.
|
|
33
35
|
*
|
|
34
36
|
* @see module:list/todolist/todocheckboxchangeobserver~TodoCheckboxChangeObserver
|
|
35
|
-
* @eventName module:engine/view/document~
|
|
37
|
+
* @eventName module:engine/view/document~ViewDocument#todoCheckboxChange
|
|
36
38
|
* @param data The event data.
|
|
37
39
|
*/
|
|
38
40
|
export type ViewDocumentTodoCheckboxChangeEvent = {
|
|
39
41
|
name: 'todoCheckboxChange';
|
|
40
|
-
args: [data:
|
|
42
|
+
args: [data: ViewDocumentDomEventData<Event>];
|
|
41
43
|
};
|
|
@@ -10,9 +10,11 @@ import { DomEventObserver } from 'ckeditor5/src/engine.js';
|
|
|
10
10
|
* Observes all to-do list checkboxes state changes.
|
|
11
11
|
*
|
|
12
12
|
* Note that this observer is not available by default. To make it available it needs to be added to
|
|
13
|
-
* {@link module:engine/view/view~
|
|
13
|
+
* {@link module:engine/view/view~EditingView} by {@link module:engine/view/view~EditingView#addObserver} method.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
14
16
|
*/
|
|
15
|
-
export
|
|
17
|
+
export class TodoCheckboxChangeObserver extends DomEventObserver {
|
|
16
18
|
/**
|
|
17
19
|
* @inheritDoc
|
|
18
20
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
-
import ListEditing from '../list/listediting.js';
|
|
6
|
+
import { ListEditing } from '../list/listediting.js';
|
|
7
7
|
/**
|
|
8
8
|
* The engine of the to-do list feature. It handles creating, editing and removing to-do lists and their items.
|
|
9
9
|
*
|
|
@@ -13,7 +13,7 @@ import ListEditing from '../list/listediting.js';
|
|
|
13
13
|
* - `'todoList'`,
|
|
14
14
|
* - `'checkTodoList'`,
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export declare class TodoListEditing extends Plugin {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
|
@@ -9,10 +9,10 @@ import { Matcher } from 'ckeditor5/src/engine.js';
|
|
|
9
9
|
import { getCode, parseKeystroke, getLocalizedArrowKeyCodeDirection } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
11
11
|
import { getAllListItemBlocks, isFirstBlockOfListItem, isListItemBlock } from '../list/utils/model.js';
|
|
12
|
-
import ListEditing from '../list/listediting.js';
|
|
13
|
-
import ListCommand from '../list/listcommand.js';
|
|
14
|
-
import CheckTodoListCommand from './checktodolistcommand.js';
|
|
15
|
-
import TodoCheckboxChangeObserver from './todocheckboxchangeobserver.js';
|
|
12
|
+
import { ListEditing } from '../list/listediting.js';
|
|
13
|
+
import { ListCommand } from '../list/listcommand.js';
|
|
14
|
+
import { CheckTodoListCommand } from './checktodolistcommand.js';
|
|
15
|
+
import { TodoCheckboxChangeObserver } from './todocheckboxchangeobserver.js';
|
|
16
16
|
const ITEM_TOGGLE_KEYSTROKE = /* #__PURE__ */ parseKeystroke('Ctrl+Enter');
|
|
17
17
|
/**
|
|
18
18
|
* The engine of the to-do list feature. It handles creating, editing and removing to-do lists and their items.
|
|
@@ -23,7 +23,7 @@ const ITEM_TOGGLE_KEYSTROKE = /* #__PURE__ */ parseKeystroke('Ctrl+Enter');
|
|
|
23
23
|
* - `'todoList'`,
|
|
24
24
|
* - `'checkTodoList'`,
|
|
25
25
|
*/
|
|
26
|
-
export
|
|
26
|
+
export class TodoListEditing extends Plugin {
|
|
27
27
|
/**
|
|
28
28
|
* @inheritDoc
|
|
29
29
|
*/
|
|
@@ -7,7 +7,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
|
|
|
7
7
|
* The to-do list UI feature. It introduces the `'todoList'` button that
|
|
8
8
|
* allows to convert elements to and from to-do list items and to indent or outdent them.
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export declare class TodoListUI extends Plugin {
|
|
11
11
|
/**
|
|
12
12
|
* @inheritDoc
|
|
13
13
|
*/
|
|
@@ -12,7 +12,7 @@ import { IconTodoList } from 'ckeditor5/src/icons.js';
|
|
|
12
12
|
* The to-do list UI feature. It introduces the `'todoList'` button that
|
|
13
13
|
* allows to convert elements to and from to-do list items and to indent or outdent them.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export class TodoListUI extends Plugin {
|
|
16
16
|
/**
|
|
17
17
|
* @inheritDoc
|
|
18
18
|
*/
|
package/src/todolist.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module list/todolist
|
|
7
7
|
*/
|
|
8
|
-
import TodoListEditing from './todolist/todolistediting.js';
|
|
9
|
-
import TodoListUI from './todolist/todolistui.js';
|
|
8
|
+
import { TodoListEditing } from './todolist/todolistediting.js';
|
|
9
|
+
import { TodoListUI } from './todolist/todolistui.js';
|
|
10
10
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
11
11
|
import '../theme/todolist.css';
|
|
12
12
|
/**
|
|
@@ -15,7 +15,7 @@ import '../theme/todolist.css';
|
|
|
15
15
|
* This is a "glue" plugin that loads the {@link module:list/todolist/todolistediting~TodoListEditing to-do list
|
|
16
16
|
* editing feature} and the {@link module:list/todolist/todolistui~TodoListUI to-do list UI feature}.
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export declare class TodoList extends Plugin {
|
|
19
19
|
/**
|
|
20
20
|
* @inheritDoc
|
|
21
21
|
*/
|
package/src/todolist.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module list/todolist
|
|
7
7
|
*/
|
|
8
|
-
import TodoListEditing from './todolist/todolistediting.js';
|
|
9
|
-
import TodoListUI from './todolist/todolistui.js';
|
|
8
|
+
import { TodoListEditing } from './todolist/todolistediting.js';
|
|
9
|
+
import { TodoListUI } from './todolist/todolistui.js';
|
|
10
10
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
11
11
|
import '../theme/todolist.css';
|
|
12
12
|
/**
|
|
@@ -15,7 +15,7 @@ import '../theme/todolist.css';
|
|
|
15
15
|
* This is a "glue" plugin that loads the {@link module:list/todolist/todolistediting~TodoListEditing to-do list
|
|
16
16
|
* editing feature} and the {@link module:list/todolist/todolistui~TodoListUI to-do list UI feature}.
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export class TodoList extends Plugin {
|
|
19
19
|
/**
|
|
20
20
|
* @inheritDoc
|
|
21
21
|
*/
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--ck-content-list-marker-color: var(--ck-content-font-color);
|
|
8
|
+
--ck-content-list-marker-font-family: var(--ck-content-font-family);
|
|
9
|
+
--ck-content-list-marker-font-size: var(--ck-content-font-size);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.ck-content li {
|
|
13
|
+
&.ck-list-marker-bold::marker {
|
|
14
|
+
font-weight: bold;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.ck-list-marker-italic::marker {
|
|
18
|
+
font-style: italic;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.ck-list-marker-color::marker {
|
|
22
|
+
color: var(--ck-content-list-marker-color);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.ck-list-marker-font-family::marker {
|
|
26
|
+
font-family: var(--ck-content-list-marker-font-family);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.ck-list-marker-font-size::marker {
|
|
30
|
+
font-size: var(--ck-content-list-marker-font-size);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.ck-list-marker-font-size-tiny::marker {
|
|
34
|
+
font-size: var(--ck-content-font-size-tiny);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.ck-list-marker-font-size-small::marker {
|
|
38
|
+
font-size: var(--ck-content-font-size-small);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.ck-list-marker-font-size-big::marker {
|
|
42
|
+
font-size: var(--ck-content-font-size-big);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.ck-list-marker-font-size-huge::marker {
|
|
46
|
+
font-size: var(--ck-content-font-size-huge);
|
|
47
|
+
}
|
|
48
|
+
}
|
package/theme/todolist.css
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
|
-
--ck-todo-list-checkmark-size: 16px;
|
|
7
|
+
--ck-content-todo-list-checkmark-size: 16px;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
@define-mixin todo-list-checkbox {
|
|
11
11
|
-webkit-appearance: none;
|
|
12
12
|
display: inline-block;
|
|
13
13
|
position: relative;
|
|
14
|
-
width: var(--ck-todo-list-checkmark-size);
|
|
15
|
-
height: var(--ck-todo-list-checkmark-size);
|
|
14
|
+
width: var(--ck-content-todo-list-checkmark-size);
|
|
15
|
+
height: var(--ck-content-todo-list-checkmark-size);
|
|
16
16
|
vertical-align: middle;
|
|
17
17
|
|
|
18
18
|
/* Needed on iOS */
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
content: '';
|
|
57
57
|
|
|
58
58
|
/* Calculate tick position, size and border-width proportional to the checkmark size. */
|
|
59
|
-
left: calc( var(--ck-todo-list-checkmark-size) / 3 );
|
|
60
|
-
top: calc( var(--ck-todo-list-checkmark-size) / 5.3 );
|
|
61
|
-
width: calc( var(--ck-todo-list-checkmark-size) / 5.3 );
|
|
62
|
-
height: calc( var(--ck-todo-list-checkmark-size) / 2.6 );
|
|
59
|
+
left: calc( var(--ck-content-todo-list-checkmark-size) / 3 );
|
|
60
|
+
top: calc( var(--ck-content-todo-list-checkmark-size) / 5.3 );
|
|
61
|
+
width: calc( var(--ck-content-todo-list-checkmark-size) / 5.3 );
|
|
62
|
+
height: calc( var(--ck-content-todo-list-checkmark-size) / 2.6 );
|
|
63
63
|
border-style: solid;
|
|
64
64
|
border-color: transparent;
|
|
65
|
-
border-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;
|
|
65
|
+
border-width: 0 calc( var(--ck-content-todo-list-checkmark-size) / 8 ) calc( var(--ck-content-todo-list-checkmark-size) / 8 ) 0;
|
|
66
66
|
transform: rotate(45deg);
|
|
67
67
|
}
|
|
68
68
|
|
package/src/documentlist.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module list/documentlist
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
-
import List from './list.js';
|
|
10
|
-
/**
|
|
11
|
-
* The document list feature.
|
|
12
|
-
*
|
|
13
|
-
* This is an obsolete plugin that exists for backward compatibility only.
|
|
14
|
-
* Use the {@link module:list/list~List `List`} instead.
|
|
15
|
-
*
|
|
16
|
-
* @deprecated
|
|
17
|
-
*/
|
|
18
|
-
export default class DocumentList extends Plugin {
|
|
19
|
-
/**
|
|
20
|
-
* @inheritDoc
|
|
21
|
-
*/
|
|
22
|
-
static get requires(): readonly [typeof List];
|
|
23
|
-
/**
|
|
24
|
-
* @inheritDoc
|
|
25
|
-
*/
|
|
26
|
-
static get pluginName(): "DocumentList";
|
|
27
|
-
/**
|
|
28
|
-
* @inheritDoc
|
|
29
|
-
*/
|
|
30
|
-
static get isOfficialPlugin(): true;
|
|
31
|
-
constructor(editor: Editor);
|
|
32
|
-
}
|
package/src/documentlist.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module list/documentlist
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import { logWarning } from 'ckeditor5/src/utils.js';
|
|
10
|
-
import List from './list.js';
|
|
11
|
-
/**
|
|
12
|
-
* The document list feature.
|
|
13
|
-
*
|
|
14
|
-
* This is an obsolete plugin that exists for backward compatibility only.
|
|
15
|
-
* Use the {@link module:list/list~List `List`} instead.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated
|
|
18
|
-
*/
|
|
19
|
-
export default class DocumentList extends Plugin {
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
static get requires() {
|
|
24
|
-
return [List];
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @inheritDoc
|
|
28
|
-
*/
|
|
29
|
-
static get pluginName() {
|
|
30
|
-
return 'DocumentList';
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @inheritDoc
|
|
34
|
-
*/
|
|
35
|
-
static get isOfficialPlugin() {
|
|
36
|
-
return true;
|
|
37
|
-
}
|
|
38
|
-
constructor(editor) {
|
|
39
|
-
super(editor);
|
|
40
|
-
/**
|
|
41
|
-
* The `DocumentList` plugin is obsolete. Use `List` instead.
|
|
42
|
-
*
|
|
43
|
-
* @error plugin-obsolete-documentlist
|
|
44
|
-
*/
|
|
45
|
-
logWarning('plugin-obsolete-documentlist', { pluginName: 'DocumentList' });
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module list/documentlistproperties
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
-
import ListProperties from './listproperties.js';
|
|
10
|
-
/**
|
|
11
|
-
* The document list properties feature.
|
|
12
|
-
*
|
|
13
|
-
* This is an obsolete plugin that exists for backward compatibility only.
|
|
14
|
-
* Use the {@link module:list/listproperties~ListProperties `ListProperties`} instead.
|
|
15
|
-
*
|
|
16
|
-
* @deprecated
|
|
17
|
-
*/
|
|
18
|
-
export default class DocumentListProperties extends Plugin {
|
|
19
|
-
/**
|
|
20
|
-
* @inheritDoc
|
|
21
|
-
*/
|
|
22
|
-
static get requires(): readonly [typeof ListProperties];
|
|
23
|
-
/**
|
|
24
|
-
* @inheritDoc
|
|
25
|
-
*/
|
|
26
|
-
static get pluginName(): "DocumentListProperties";
|
|
27
|
-
/**
|
|
28
|
-
* @inheritDoc
|
|
29
|
-
*/
|
|
30
|
-
static get isOfficialPlugin(): true;
|
|
31
|
-
constructor(editor: Editor);
|
|
32
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module list/documentlistproperties
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import { logWarning } from 'ckeditor5/src/utils.js';
|
|
10
|
-
import ListProperties from './listproperties.js';
|
|
11
|
-
/**
|
|
12
|
-
* The document list properties feature.
|
|
13
|
-
*
|
|
14
|
-
* This is an obsolete plugin that exists for backward compatibility only.
|
|
15
|
-
* Use the {@link module:list/listproperties~ListProperties `ListProperties`} instead.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated
|
|
18
|
-
*/
|
|
19
|
-
export default class DocumentListProperties extends Plugin {
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
static get requires() {
|
|
24
|
-
return [ListProperties];
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @inheritDoc
|
|
28
|
-
*/
|
|
29
|
-
static get pluginName() {
|
|
30
|
-
return 'DocumentListProperties';
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @inheritDoc
|
|
34
|
-
*/
|
|
35
|
-
static get isOfficialPlugin() {
|
|
36
|
-
return true;
|
|
37
|
-
}
|
|
38
|
-
constructor(editor) {
|
|
39
|
-
super(editor);
|
|
40
|
-
/**
|
|
41
|
-
* The `DocumentListProperties` plugin is obsolete. Use `ListProperties` instead.
|
|
42
|
-
*
|
|
43
|
-
* @error plugin-obsolete-documentlistproperties
|
|
44
|
-
*/
|
|
45
|
-
logWarning('plugin-obsolete-documentlistproperties', { pluginName: 'DocumentListProperties' });
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module list/tododocumentlist
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
-
import TodoList from './todolist.js';
|
|
10
|
-
/**
|
|
11
|
-
* The to-do list feature.
|
|
12
|
-
*
|
|
13
|
-
* This is an obsolete plugin that exists for backward compatibility only.
|
|
14
|
-
* Use the {@link module:list/todolist~TodoList `TodoList`} instead.
|
|
15
|
-
*
|
|
16
|
-
* @deprecated
|
|
17
|
-
*/
|
|
18
|
-
export default class TodoDocumentList extends Plugin {
|
|
19
|
-
/**
|
|
20
|
-
* @inheritDoc
|
|
21
|
-
*/
|
|
22
|
-
static get requires(): readonly [typeof TodoList];
|
|
23
|
-
/**
|
|
24
|
-
* @inheritDoc
|
|
25
|
-
*/
|
|
26
|
-
static get pluginName(): "TodoDocumentList";
|
|
27
|
-
/**
|
|
28
|
-
* @inheritDoc
|
|
29
|
-
*/
|
|
30
|
-
static get isOfficialPlugin(): true;
|
|
31
|
-
constructor(editor: Editor);
|
|
32
|
-
}
|
package/src/tododocumentlist.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module list/tododocumentlist
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import { logWarning } from 'ckeditor5/src/utils.js';
|
|
10
|
-
import TodoList from './todolist.js';
|
|
11
|
-
/**
|
|
12
|
-
* The to-do list feature.
|
|
13
|
-
*
|
|
14
|
-
* This is an obsolete plugin that exists for backward compatibility only.
|
|
15
|
-
* Use the {@link module:list/todolist~TodoList `TodoList`} instead.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated
|
|
18
|
-
*/
|
|
19
|
-
export default class TodoDocumentList extends Plugin {
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
static get requires() {
|
|
24
|
-
return [TodoList];
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @inheritDoc
|
|
28
|
-
*/
|
|
29
|
-
static get pluginName() {
|
|
30
|
-
return 'TodoDocumentList';
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @inheritDoc
|
|
34
|
-
*/
|
|
35
|
-
static get isOfficialPlugin() {
|
|
36
|
-
return true;
|
|
37
|
-
}
|
|
38
|
-
constructor(editor) {
|
|
39
|
-
super(editor);
|
|
40
|
-
/**
|
|
41
|
-
* The `TodoDocumentList` plugin is obsolete. Use `TodoList` instead.
|
|
42
|
-
*
|
|
43
|
-
* @error plugin-obsolete-tododocumentlist
|
|
44
|
-
*/
|
|
45
|
-
logWarning('plugin-obsolete-tododocumentlist', { pluginName: 'TodoDocumentList' });
|
|
46
|
-
}
|
|
47
|
-
}
|