@ckeditor/ckeditor5-engine 40.2.0 → 41.1.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/CHANGELOG.md +34 -34
- package/LICENSE.md +1 -1
- package/package.json +3 -2
- package/src/controller/datacontroller.d.ts +17 -16
- package/src/controller/datacontroller.js +12 -12
- package/src/controller/editingcontroller.d.ts +8 -8
- package/src/controller/editingcontroller.js +8 -8
- package/src/conversion/conversion.d.ts +7 -7
- package/src/conversion/conversion.js +3 -3
- package/src/conversion/conversionhelpers.d.ts +1 -1
- package/src/conversion/conversionhelpers.js +1 -1
- package/src/conversion/downcastdispatcher.d.ts +14 -14
- package/src/conversion/downcastdispatcher.js +3 -3
- package/src/conversion/downcasthelpers.d.ts +18 -54
- package/src/conversion/downcasthelpers.js +35 -52
- package/src/conversion/mapper.d.ts +10 -10
- package/src/conversion/mapper.js +6 -6
- package/src/conversion/modelconsumable.d.ts +6 -6
- package/src/conversion/modelconsumable.js +2 -2
- package/src/conversion/upcastdispatcher.d.ts +13 -13
- package/src/conversion/upcastdispatcher.js +6 -6
- package/src/conversion/upcasthelpers.d.ts +10 -10
- package/src/conversion/upcasthelpers.js +6 -6
- package/src/conversion/viewconsumable.d.ts +6 -6
- package/src/conversion/viewconsumable.js +1 -1
- package/src/dataprocessor/basichtmlwriter.d.ts +2 -2
- package/src/dataprocessor/basichtmlwriter.js +1 -1
- package/src/dataprocessor/dataprocessor.d.ts +3 -3
- package/src/dataprocessor/dataprocessor.js +1 -1
- package/src/dataprocessor/htmldataprocessor.d.ts +7 -7
- package/src/dataprocessor/htmldataprocessor.js +3 -3
- package/src/dataprocessor/htmlwriter.d.ts +1 -1
- package/src/dataprocessor/htmlwriter.js +1 -1
- package/src/dataprocessor/xmldataprocessor.d.ts +7 -7
- package/src/dataprocessor/xmldataprocessor.js +3 -3
- package/src/dev-utils/model.d.ts +11 -11
- package/src/dev-utils/model.js +17 -17
- package/src/dev-utils/operationreplayer.d.ts +3 -3
- package/src/dev-utils/operationreplayer.js +2 -2
- package/src/dev-utils/utils.d.ts +1 -1
- package/src/dev-utils/utils.js +1 -1
- package/src/dev-utils/view.d.ts +9 -9
- package/src/dev-utils/view.js +15 -15
- package/src/index.d.ts +107 -108
- package/src/index.js +65 -66
- package/src/model/batch.d.ts +2 -2
- package/src/model/batch.js +1 -1
- package/src/model/differ.d.ts +35 -7
- package/src/model/differ.js +9 -6
- package/src/model/document.d.ts +12 -10
- package/src/model/document.js +5 -5
- package/src/model/documentfragment.d.ts +5 -5
- package/src/model/documentfragment.js +6 -6
- package/src/model/documentselection.d.ts +9 -9
- package/src/model/documentselection.js +6 -6
- package/src/model/element.d.ts +3 -3
- package/src/model/element.js +5 -5
- package/src/model/history.d.ts +2 -2
- package/src/model/history.js +1 -1
- package/src/model/item.d.ts +3 -3
- package/src/model/item.js +1 -1
- package/src/model/liveposition.d.ts +5 -5
- package/src/model/liveposition.js +2 -2
- package/src/model/liverange.d.ts +6 -6
- package/src/model/liverange.js +2 -2
- package/src/model/markercollection.d.ts +5 -5
- package/src/model/markercollection.js +3 -3
- package/src/model/model.d.ts +15 -15
- package/src/model/model.js +19 -19
- package/src/model/node.d.ts +6 -6
- package/src/model/node.js +3 -3
- package/src/model/nodelist.d.ts +2 -2
- package/src/model/nodelist.js +2 -2
- package/src/model/operation/attributeoperation.d.ts +5 -5
- package/src/model/operation/attributeoperation.js +4 -4
- package/src/model/operation/detachoperation.d.ts +4 -4
- package/src/model/operation/detachoperation.js +4 -4
- package/src/model/operation/insertoperation.d.ts +7 -7
- package/src/model/operation/insertoperation.js +8 -8
- package/src/model/operation/markeroperation.d.ts +6 -6
- package/src/model/operation/markeroperation.js +3 -3
- package/src/model/operation/mergeoperation.d.ts +6 -6
- package/src/model/operation/mergeoperation.js +6 -6
- package/src/model/operation/moveoperation.d.ts +5 -5
- package/src/model/operation/moveoperation.js +5 -5
- package/src/model/operation/nooperation.d.ts +3 -3
- package/src/model/operation/nooperation.js +2 -2
- package/src/model/operation/operation.d.ts +4 -4
- package/src/model/operation/operation.js +1 -1
- package/src/model/operation/operationfactory.d.ts +3 -3
- package/src/model/operation/operationfactory.js +12 -12
- package/src/model/operation/renameoperation.d.ts +5 -5
- package/src/model/operation/renameoperation.js +4 -4
- package/src/model/operation/rootattributeoperation.d.ts +5 -5
- package/src/model/operation/rootattributeoperation.js +2 -2
- package/src/model/operation/rootoperation.d.ts +4 -4
- package/src/model/operation/rootoperation.js +2 -2
- package/src/model/operation/splitoperation.d.ts +6 -6
- package/src/model/operation/splitoperation.js +6 -6
- package/src/model/operation/transform.d.ts +3 -3
- package/src/model/operation/transform.js +13 -13
- package/src/model/operation/utils.d.ts +7 -7
- package/src/model/operation/utils.js +5 -5
- package/src/model/position.d.ts +15 -15
- package/src/model/position.js +4 -4
- package/src/model/range.d.ts +13 -13
- package/src/model/range.js +4 -4
- package/src/model/rootelement.d.ts +3 -3
- package/src/model/rootelement.js +2 -2
- package/src/model/schema.d.ts +32 -12
- package/src/model/schema.js +52 -7
- package/src/model/selection.d.ts +8 -8
- package/src/model/selection.js +5 -5
- package/src/model/text.d.ts +2 -2
- package/src/model/text.js +2 -2
- package/src/model/textproxy.d.ts +6 -6
- package/src/model/textproxy.js +2 -2
- package/src/model/treewalker.d.ts +4 -4
- package/src/model/treewalker.js +5 -5
- package/src/model/typecheckable.d.ts +14 -14
- package/src/model/typecheckable.js +1 -1
- package/src/model/utils/autoparagraphing.d.ts +5 -5
- package/src/model/utils/autoparagraphing.js +1 -1
- package/src/model/utils/deletecontent.d.ts +4 -4
- package/src/model/utils/deletecontent.js +4 -4
- package/src/model/utils/getselectedcontent.d.ts +5 -5
- package/src/model/utils/getselectedcontent.js +1 -1
- package/src/model/utils/insertcontent.d.ts +7 -7
- package/src/model/utils/insertcontent.js +7 -7
- package/src/model/utils/insertobject.d.ts +9 -6
- package/src/model/utils/insertobject.js +2 -6
- package/src/model/utils/modifyselection.d.ts +4 -4
- package/src/model/utils/modifyselection.js +5 -5
- package/src/model/utils/selection-post-fixer.d.ts +4 -4
- package/src/model/utils/selection-post-fixer.js +3 -3
- package/src/model/writer.d.ts +13 -13
- package/src/model/writer.js +18 -18
- package/src/view/attributeelement.d.ts +4 -4
- package/src/view/attributeelement.js +4 -3
- package/src/view/containerelement.d.ts +4 -4
- package/src/view/containerelement.js +2 -2
- package/src/view/datatransfer.d.ts +1 -1
- package/src/view/datatransfer.js +1 -1
- package/src/view/document.d.ts +5 -5
- package/src/view/document.js +3 -3
- package/src/view/documentfragment.d.ts +5 -5
- package/src/view/documentfragment.js +4 -4
- package/src/view/documentselection.d.ts +9 -9
- package/src/view/documentselection.js +3 -3
- package/src/view/domconverter.d.ts +14 -14
- package/src/view/domconverter.js +11 -11
- package/src/view/downcastwriter.d.ts +18 -18
- package/src/view/downcastwriter.js +12 -12
- package/src/view/editableelement.d.ts +5 -5
- package/src/view/editableelement.js +2 -2
- package/src/view/element.d.ts +6 -6
- package/src/view/element.js +6 -6
- package/src/view/elementdefinition.d.ts +1 -1
- package/src/view/elementdefinition.js +1 -1
- package/src/view/emptyelement.d.ts +5 -5
- package/src/view/emptyelement.js +3 -3
- package/src/view/filler.d.ts +2 -2
- package/src/view/filler.js +1 -1
- package/src/view/item.d.ts +3 -3
- package/src/view/item.js +1 -1
- package/src/view/matcher.d.ts +2 -2
- package/src/view/matcher.js +1 -1
- package/src/view/node.d.ts +6 -6
- package/src/view/node.js +3 -3
- package/src/view/observer/arrowkeysobserver.d.ts +5 -5
- package/src/view/observer/arrowkeysobserver.js +3 -3
- package/src/view/observer/bubblingemittermixin.d.ts +3 -3
- package/src/view/observer/bubblingemittermixin.js +2 -2
- package/src/view/observer/bubblingeventinfo.d.ts +4 -4
- package/src/view/observer/bubblingeventinfo.js +1 -1
- package/src/view/observer/clickobserver.d.ts +4 -4
- package/src/view/observer/clickobserver.js +2 -2
- package/src/view/observer/compositionobserver.d.ts +4 -4
- package/src/view/observer/compositionobserver.js +2 -2
- package/src/view/observer/domeventdata.d.ts +4 -4
- package/src/view/observer/domeventdata.js +1 -1
- package/src/view/observer/domeventobserver.d.ts +2 -2
- package/src/view/observer/domeventobserver.js +3 -3
- package/src/view/observer/fakeselectionobserver.d.ts +3 -3
- package/src/view/observer/fakeselectionobserver.js +3 -3
- package/src/view/observer/focusobserver.d.ts +4 -4
- package/src/view/observer/focusobserver.js +2 -2
- package/src/view/observer/inputobserver.d.ts +5 -5
- package/src/view/observer/inputobserver.js +3 -3
- package/src/view/observer/keyobserver.d.ts +3 -3
- package/src/view/observer/keyobserver.js +2 -2
- package/src/view/observer/mouseobserver.d.ts +3 -3
- package/src/view/observer/mouseobserver.js +2 -2
- package/src/view/observer/mutationobserver.d.ts +5 -5
- package/src/view/observer/mutationobserver.js +3 -3
- package/src/view/observer/observer.d.ts +3 -3
- package/src/view/observer/observer.js +1 -1
- package/src/view/observer/selectionobserver.d.ts +8 -8
- package/src/view/observer/selectionobserver.js +4 -4
- package/src/view/observer/tabobserver.d.ts +5 -5
- package/src/view/observer/tabobserver.js +3 -3
- package/src/view/placeholder.d.ts +5 -5
- package/src/view/placeholder.js +1 -1
- package/src/view/position.d.ts +8 -8
- package/src/view/position.js +5 -5
- package/src/view/range.d.ts +8 -8
- package/src/view/range.js +4 -4
- package/src/view/rawelement.d.ts +6 -6
- package/src/view/rawelement.js +3 -3
- package/src/view/renderer.d.ts +6 -6
- package/src/view/renderer.js +4 -4
- package/src/view/rooteditableelement.d.ts +3 -3
- package/src/view/rooteditableelement.js +2 -2
- package/src/view/selection.d.ts +9 -9
- package/src/view/selection.js +6 -6
- package/src/view/styles/background.d.ts +2 -2
- package/src/view/styles/background.js +2 -2
- package/src/view/styles/border.d.ts +2 -2
- package/src/view/styles/border.js +2 -2
- package/src/view/styles/margin.d.ts +2 -2
- package/src/view/styles/margin.js +2 -2
- package/src/view/styles/padding.d.ts +2 -2
- package/src/view/styles/padding.js +2 -2
- package/src/view/styles/utils.d.ts +2 -2
- package/src/view/styles/utils.js +1 -1
- package/src/view/stylesmap.d.ts +2 -2
- package/src/view/stylesmap.js +4 -4
- package/src/view/text.d.ts +3 -3
- package/src/view/text.js +2 -2
- package/src/view/textproxy.d.ts +7 -7
- package/src/view/textproxy.js +2 -2
- package/src/view/treewalker.d.ts +4 -4
- package/src/view/treewalker.js +5 -5
- package/src/view/typecheckable.d.ts +17 -17
- package/src/view/typecheckable.js +1 -1
- package/src/view/uielement.d.ts +7 -7
- package/src/view/uielement.js +3 -3
- package/src/view/upcastwriter.d.ts +10 -10
- package/src/view/upcastwriter.js +7 -7
- package/src/view/view.d.ts +22 -22
- package/src/view/view.js +19 -19
- package/theme/placeholder.css +1 -1
- package/theme/renderer.css +1 -1
- package/src/model/utils/findoptimalinsertionrange.d.ts +0 -32
- package/src/model/utils/findoptimalinsertionrange.js +0 -57
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/observer/mutationobserver
|
|
7
7
|
*/
|
|
8
8
|
/* globals window */
|
|
9
|
-
import Observer from './observer';
|
|
10
|
-
import { startsWithFiller } from '../filler';
|
|
9
|
+
import Observer from './observer.js';
|
|
10
|
+
import { startsWithFiller } from '../filler.js';
|
|
11
11
|
import { isEqualWith } from 'lodash-es';
|
|
12
12
|
/**
|
|
13
13
|
* Mutation observer's role is to watch for any DOM changes inside the editor that weren't
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
-
import type Document from '../document';
|
|
6
|
-
import type View from '../view';
|
|
5
|
+
import type Document from '../document.js';
|
|
6
|
+
import type View from '../view.js';
|
|
7
7
|
declare const Observer_base: {
|
|
8
8
|
new (): import("@ckeditor/ckeditor5-utils").DomEmitter;
|
|
9
9
|
prototype: import("@ckeditor/ckeditor5-utils").DomEmitter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/observer/selectionobserver
|
|
7
7
|
*/
|
|
8
|
-
import Observer from './observer';
|
|
9
|
-
import MutationObserver from './mutationobserver';
|
|
10
|
-
import type View from '../view';
|
|
11
|
-
import type DocumentSelection from '../documentselection';
|
|
12
|
-
import type DomConverter from '../domconverter';
|
|
13
|
-
import type Selection from '../selection';
|
|
14
|
-
import FocusObserver from './focusobserver';
|
|
8
|
+
import Observer from './observer.js';
|
|
9
|
+
import MutationObserver from './mutationobserver.js';
|
|
10
|
+
import type View from '../view.js';
|
|
11
|
+
import type DocumentSelection from '../documentselection.js';
|
|
12
|
+
import type DomConverter from '../domconverter.js';
|
|
13
|
+
import type Selection from '../selection.js';
|
|
14
|
+
import FocusObserver from './focusobserver.js';
|
|
15
15
|
type DomSelection = globalThis.Selection;
|
|
16
16
|
/**
|
|
17
17
|
* Selection observer class observes selection changes in the document. If a selection changes on the document this
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/observer/selectionobserver
|
|
7
7
|
*/
|
|
8
8
|
/* global setInterval, clearInterval */
|
|
9
|
-
import Observer from './observer';
|
|
10
|
-
import MutationObserver from './mutationobserver';
|
|
9
|
+
import Observer from './observer.js';
|
|
10
|
+
import MutationObserver from './mutationobserver.js';
|
|
11
11
|
import { env } from '@ckeditor/ckeditor5-utils';
|
|
12
12
|
import { debounce } from 'lodash-es';
|
|
13
|
-
import FocusObserver from './focusobserver';
|
|
13
|
+
import FocusObserver from './focusobserver.js';
|
|
14
14
|
/**
|
|
15
15
|
* Selection observer class observes selection changes in the document. If a selection changes on the document this
|
|
16
16
|
* observer checks if the DOM selection is different from the {@link module:engine/view/document~Document#selection view selection}.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/observer/tabobserver
|
|
7
7
|
*/
|
|
8
|
-
import type View from '../view';
|
|
9
|
-
import Observer from './observer';
|
|
10
|
-
import type { KeyEventData } from './keyobserver';
|
|
11
|
-
import type { BubblingEvent } from './bubblingemittermixin';
|
|
8
|
+
import type View from '../view.js';
|
|
9
|
+
import Observer from './observer.js';
|
|
10
|
+
import type { KeyEventData } from './keyobserver.js';
|
|
11
|
+
import type { BubblingEvent } from './bubblingemittermixin.js';
|
|
12
12
|
/**
|
|
13
13
|
* Tab observer introduces the {@link module:engine/view/document~Document#event:tab `Document#tab`} event.
|
|
14
14
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
-
import Observer from './observer';
|
|
6
|
-
import BubblingEventInfo from './bubblingeventinfo';
|
|
5
|
+
import Observer from './observer.js';
|
|
6
|
+
import BubblingEventInfo from './bubblingeventinfo.js';
|
|
7
7
|
import { keyCodes } from '@ckeditor/ckeditor5-utils';
|
|
8
8
|
/**
|
|
9
9
|
* Tab observer introduces the {@link module:engine/view/document~Document#event:tab `Document#tab`} event.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/placeholder
|
|
7
7
|
*/
|
|
8
8
|
import '../../theme/placeholder.css';
|
|
9
|
-
import type DowncastWriter from './downcastwriter';
|
|
10
|
-
import type EditableElement from './editableelement';
|
|
11
|
-
import type Element from './element';
|
|
12
|
-
import type View from './view';
|
|
9
|
+
import type DowncastWriter from './downcastwriter.js';
|
|
10
|
+
import type EditableElement from './editableelement.js';
|
|
11
|
+
import type Element from './element.js';
|
|
12
|
+
import type View from './view.js';
|
|
13
13
|
/**
|
|
14
14
|
* A helper that enables a placeholder on the provided view element (also updates its visibility).
|
|
15
15
|
* The placeholder is a CSS pseudo–element (with a text content) attached to the element.
|
package/src/view/placeholder.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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/src/view/position.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/position
|
|
7
7
|
*/
|
|
8
|
-
import TypeCheckable from './typecheckable';
|
|
9
|
-
import EditableElement from './editableelement';
|
|
10
|
-
import '@ckeditor/ckeditor5-utils/src/version';
|
|
11
|
-
import type DocumentFragment from './documentfragment';
|
|
12
|
-
import type Item from './item';
|
|
13
|
-
import type Node from './node';
|
|
14
|
-
import { default as TreeWalker, type TreeWalkerValue, type TreeWalkerOptions } from './treewalker';
|
|
8
|
+
import TypeCheckable from './typecheckable.js';
|
|
9
|
+
import EditableElement from './editableelement.js';
|
|
10
|
+
import '@ckeditor/ckeditor5-utils/src/version.js';
|
|
11
|
+
import type DocumentFragment from './documentfragment.js';
|
|
12
|
+
import type Item from './item.js';
|
|
13
|
+
import type Node from './node.js';
|
|
14
|
+
import { default as TreeWalker, type TreeWalkerValue, type TreeWalkerOptions } from './treewalker.js';
|
|
15
15
|
/**
|
|
16
16
|
* Position in the view tree. Position is represented by its parent node and an offset in this parent.
|
|
17
17
|
*
|
package/src/view/position.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/position
|
|
7
7
|
*/
|
|
8
|
-
import TypeCheckable from './typecheckable';
|
|
8
|
+
import TypeCheckable from './typecheckable.js';
|
|
9
9
|
import { CKEditorError, compareArrays } from '@ckeditor/ckeditor5-utils';
|
|
10
|
-
import EditableElement from './editableelement';
|
|
10
|
+
import EditableElement from './editableelement.js';
|
|
11
11
|
// To check if component is loaded more than once.
|
|
12
|
-
import '@ckeditor/ckeditor5-utils/src/version';
|
|
13
|
-
import { default as TreeWalker } from './treewalker';
|
|
12
|
+
import '@ckeditor/ckeditor5-utils/src/version.js';
|
|
13
|
+
import { default as TreeWalker } from './treewalker.js';
|
|
14
14
|
/**
|
|
15
15
|
* Position in the view tree. Position is represented by its parent node and an offset in this parent.
|
|
16
16
|
*
|
package/src/view/range.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/range
|
|
7
7
|
*/
|
|
8
|
-
import TypeCheckable from './typecheckable';
|
|
9
|
-
import Position from './position';
|
|
10
|
-
import type DocumentFragment from './documentfragment';
|
|
11
|
-
import type Element from './element';
|
|
12
|
-
import type Item from './item';
|
|
13
|
-
import type Node from './node';
|
|
14
|
-
import { default as TreeWalker, type TreeWalkerValue, type TreeWalkerOptions } from './treewalker';
|
|
8
|
+
import TypeCheckable from './typecheckable.js';
|
|
9
|
+
import Position from './position.js';
|
|
10
|
+
import type DocumentFragment from './documentfragment.js';
|
|
11
|
+
import type Element from './element.js';
|
|
12
|
+
import type Item from './item.js';
|
|
13
|
+
import type Node from './node.js';
|
|
14
|
+
import { default as TreeWalker, type TreeWalkerValue, type TreeWalkerOptions } from './treewalker.js';
|
|
15
15
|
/**
|
|
16
16
|
* Range in the view tree. A range is represented by its start and end {@link module:engine/view/position~Position positions}.
|
|
17
17
|
*
|
package/src/view/range.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/range
|
|
7
7
|
*/
|
|
8
|
-
import TypeCheckable from './typecheckable';
|
|
9
|
-
import Position from './position';
|
|
10
|
-
import { default as TreeWalker } from './treewalker';
|
|
8
|
+
import TypeCheckable from './typecheckable.js';
|
|
9
|
+
import Position from './position.js';
|
|
10
|
+
import { default as TreeWalker } from './treewalker.js';
|
|
11
11
|
/**
|
|
12
12
|
* Range in the view tree. A range is represented by its start and end {@link module:engine/view/position~Position positions}.
|
|
13
13
|
*
|
package/src/view/rawelement.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/rawelement
|
|
7
7
|
*/
|
|
8
|
-
import Element, { type ElementAttributes } from './element';
|
|
9
|
-
import Node from './node';
|
|
10
|
-
import type Document from './document';
|
|
11
|
-
import type DomConverter from './domconverter';
|
|
12
|
-
import type Item from './item';
|
|
8
|
+
import Element, { type ElementAttributes } from './element.js';
|
|
9
|
+
import Node from './node.js';
|
|
10
|
+
import type Document from './document.js';
|
|
11
|
+
import type DomConverter from './domconverter.js';
|
|
12
|
+
import type Item from './item.js';
|
|
13
13
|
type DomElement = globalThis.HTMLElement;
|
|
14
14
|
/**
|
|
15
15
|
* The raw element class.
|
package/src/view/rawelement.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
6
6
|
/**
|
|
7
7
|
* @module engine/view/rawelement
|
|
8
8
|
*/
|
|
9
|
-
import Element from './element';
|
|
10
|
-
import Node from './node';
|
|
9
|
+
import Element from './element.js';
|
|
10
|
+
import Node from './node.js';
|
|
11
11
|
import { CKEditorError } from '@ckeditor/ckeditor5-utils';
|
|
12
12
|
/**
|
|
13
13
|
* The raw element class.
|
package/src/view/renderer.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
-
import type { ChangeType } from './document';
|
|
6
|
-
import type DocumentSelection from './documentselection';
|
|
7
|
-
import type DomConverter from './domconverter';
|
|
8
|
-
import type ViewElement from './element';
|
|
9
|
-
import type ViewNode from './node';
|
|
5
|
+
import type { ChangeType } from './document.js';
|
|
6
|
+
import type DocumentSelection from './documentselection.js';
|
|
7
|
+
import type DomConverter from './domconverter.js';
|
|
8
|
+
import type ViewElement from './element.js';
|
|
9
|
+
import type ViewNode from './node.js';
|
|
10
10
|
import '../../theme/renderer.css';
|
|
11
11
|
type DomDocument = globalThis.Document;
|
|
12
12
|
declare const Renderer_base: {
|
package/src/view/renderer.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/renderer
|
|
7
7
|
*/
|
|
8
|
-
import ViewText from './text';
|
|
9
|
-
import ViewPosition from './position';
|
|
10
|
-
import { INLINE_FILLER, INLINE_FILLER_LENGTH, startsWithFiller, isInlineFiller } from './filler';
|
|
8
|
+
import ViewText from './text.js';
|
|
9
|
+
import ViewPosition from './position.js';
|
|
10
|
+
import { INLINE_FILLER, INLINE_FILLER_LENGTH, startsWithFiller, isInlineFiller } from './filler.js';
|
|
11
11
|
import { CKEditorError, ObservableMixin, diff, env, fastDiff, insertAt, isComment, isNode, isText, remove } from '@ckeditor/ckeditor5-utils';
|
|
12
12
|
import '../../theme/renderer.css';
|
|
13
13
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/rooteditableelement
|
|
7
7
|
*/
|
|
8
|
-
import EditableElement from './editableelement';
|
|
9
|
-
import type Document from './document';
|
|
8
|
+
import EditableElement from './editableelement.js';
|
|
9
|
+
import type Document from './document.js';
|
|
10
10
|
/**
|
|
11
11
|
* Class representing a single root in the data view. A root can be either {@link ~RootEditableElement#isReadOnly editable or read-only},
|
|
12
12
|
* but in both cases it is called "an editable". Roots can contain other {@link module:engine/view/editableelement~EditableElement
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/rooteditableelement
|
|
7
7
|
*/
|
|
8
|
-
import EditableElement from './editableelement';
|
|
8
|
+
import EditableElement from './editableelement.js';
|
|
9
9
|
const rootNameSymbol = Symbol('rootName');
|
|
10
10
|
/**
|
|
11
11
|
* Class representing a single root in the data view. A root can be either {@link ~RootEditableElement#isReadOnly editable or read-only},
|
package/src/view/selection.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/selection
|
|
7
7
|
*/
|
|
8
|
-
import TypeCheckable from './typecheckable';
|
|
9
|
-
import Range from './range';
|
|
10
|
-
import Position, { type PositionOffset } from './position';
|
|
11
|
-
import Node from './node';
|
|
12
|
-
import DocumentSelection from './documentselection';
|
|
13
|
-
import type Element from './element';
|
|
14
|
-
import type Item from './item';
|
|
15
|
-
import type EditableElement from './editableelement';
|
|
8
|
+
import TypeCheckable from './typecheckable.js';
|
|
9
|
+
import Range from './range.js';
|
|
10
|
+
import Position, { type PositionOffset } from './position.js';
|
|
11
|
+
import Node from './node.js';
|
|
12
|
+
import DocumentSelection from './documentselection.js';
|
|
13
|
+
import type Element from './element.js';
|
|
14
|
+
import type Item from './item.js';
|
|
15
|
+
import type EditableElement from './editableelement.js';
|
|
16
16
|
declare const Selection_base: import("@ckeditor/ckeditor5-utils").Mixed<typeof TypeCheckable, import("@ckeditor/ckeditor5-utils").Emitter>;
|
|
17
17
|
/**
|
|
18
18
|
* Class representing an arbirtary selection in the view.
|
package/src/view/selection.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/selection
|
|
7
7
|
*/
|
|
8
|
-
import TypeCheckable from './typecheckable';
|
|
9
|
-
import Range from './range';
|
|
10
|
-
import Position from './position';
|
|
11
|
-
import Node from './node';
|
|
12
|
-
import DocumentSelection from './documentselection';
|
|
8
|
+
import TypeCheckable from './typecheckable.js';
|
|
9
|
+
import Range from './range.js';
|
|
10
|
+
import Position from './position.js';
|
|
11
|
+
import Node from './node.js';
|
|
12
|
+
import DocumentSelection from './documentselection.js';
|
|
13
13
|
import { CKEditorError, EmitterMixin, count, isIterable } from '@ckeditor/ckeditor5-utils';
|
|
14
14
|
/**
|
|
15
15
|
* Class representing an arbirtary selection in the view.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/styles/background
|
|
7
7
|
*/
|
|
8
|
-
import type { StylesProcessor } from '../stylesmap';
|
|
8
|
+
import type { StylesProcessor } from '../stylesmap.js';
|
|
9
9
|
/**
|
|
10
10
|
* Adds a background CSS styles processing rules.
|
|
11
11
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
-
import { getShorthandValues, isAttachment, isColor, isPosition, isRepeat, isURL } from './utils';
|
|
5
|
+
import { getShorthandValues, isAttachment, isColor, isPosition, isRepeat, isURL } from './utils.js';
|
|
6
6
|
/**
|
|
7
7
|
* Adds a background CSS styles processing rules.
|
|
8
8
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/styles/border
|
|
7
7
|
*/
|
|
8
|
-
import type { StylesProcessor } from '../stylesmap';
|
|
8
|
+
import type { StylesProcessor } from '../stylesmap.js';
|
|
9
9
|
/**
|
|
10
10
|
* Adds a border CSS styles processing rules.
|
|
11
11
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
-
import { getShorthandValues, getBoxSidesValueReducer, getBoxSidesValues, isLength, isLineStyle } from './utils';
|
|
5
|
+
import { getShorthandValues, getBoxSidesValueReducer, getBoxSidesValues, isLength, isLineStyle } from './utils.js';
|
|
6
6
|
/**
|
|
7
7
|
* Adds a border CSS styles processing rules.
|
|
8
8
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/styles/margin
|
|
7
7
|
*/
|
|
8
|
-
import type { StylesProcessor } from '../stylesmap';
|
|
8
|
+
import type { StylesProcessor } from '../stylesmap.js';
|
|
9
9
|
/**
|
|
10
10
|
* Adds a margin CSS styles processing rules.
|
|
11
11
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
-
import { getPositionShorthandNormalizer, getBoxSidesValueReducer } from './utils';
|
|
5
|
+
import { getPositionShorthandNormalizer, getBoxSidesValueReducer } from './utils.js';
|
|
6
6
|
/**
|
|
7
7
|
* Adds a margin CSS styles processing rules.
|
|
8
8
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/styles/padding
|
|
7
7
|
*/
|
|
8
|
-
import type { StylesProcessor } from '../stylesmap';
|
|
8
|
+
import type { StylesProcessor } from '../stylesmap.js';
|
|
9
9
|
/**
|
|
10
10
|
* Adds a margin CSS styles processing rules.
|
|
11
11
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
-
import { getPositionShorthandNormalizer, getBoxSidesValueReducer } from './utils';
|
|
5
|
+
import { getPositionShorthandNormalizer, getBoxSidesValueReducer } from './utils.js';
|
|
6
6
|
/**
|
|
7
7
|
* Adds a margin CSS styles processing rules.
|
|
8
8
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/styles/utils
|
|
7
7
|
*/
|
|
8
|
-
import type { BoxSides, PropertyDescriptor, StyleValue } from '../stylesmap';
|
|
8
|
+
import type { BoxSides, PropertyDescriptor, StyleValue } from '../stylesmap.js';
|
|
9
9
|
/**
|
|
10
10
|
* Checks if string contains [color](https://developer.mozilla.org/en-US/docs/Web/CSS/color) CSS value.
|
|
11
11
|
*
|
package/src/view/styles/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
const HEX_COLOR_REGEXP = /^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
|
package/src/view/stylesmap.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
/**
|
|
@@ -312,7 +312,7 @@ export default class StylesMap {
|
|
|
312
312
|
/**
|
|
313
313
|
* Returns normalized styles entries for further processing.
|
|
314
314
|
*/
|
|
315
|
-
|
|
315
|
+
getStylesEntries(): Array<PropertyDescriptor>;
|
|
316
316
|
/**
|
|
317
317
|
* Removes empty objects upon removing an entry from internal object.
|
|
318
318
|
*/
|
package/src/view/stylesmap.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
/**
|
|
@@ -190,7 +190,7 @@ export default class StylesMap {
|
|
|
190
190
|
if (this.isEmpty) {
|
|
191
191
|
return '';
|
|
192
192
|
}
|
|
193
|
-
return this.
|
|
193
|
+
return this.getStylesEntries()
|
|
194
194
|
.map(arr => arr.join(':'))
|
|
195
195
|
.sort()
|
|
196
196
|
.join(';') + ';';
|
|
@@ -290,7 +290,7 @@ export default class StylesMap {
|
|
|
290
290
|
if (expand) {
|
|
291
291
|
return this._styleProcessor.getStyleNames(this._styles);
|
|
292
292
|
}
|
|
293
|
-
const entries = this.
|
|
293
|
+
const entries = this.getStylesEntries();
|
|
294
294
|
return entries.map(([key]) => key);
|
|
295
295
|
}
|
|
296
296
|
/**
|
|
@@ -302,7 +302,7 @@ export default class StylesMap {
|
|
|
302
302
|
/**
|
|
303
303
|
* Returns normalized styles entries for further processing.
|
|
304
304
|
*/
|
|
305
|
-
|
|
305
|
+
getStylesEntries() {
|
|
306
306
|
const parsed = [];
|
|
307
307
|
const keys = Object.keys(this._styles);
|
|
308
308
|
for (const key of keys) {
|
package/src/view/text.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/text
|
|
7
7
|
*/
|
|
8
|
-
import Node from './node';
|
|
9
|
-
import type Document from './document';
|
|
8
|
+
import Node from './node.js';
|
|
9
|
+
import type Document from './document.js';
|
|
10
10
|
/**
|
|
11
11
|
* Tree view text node.
|
|
12
12
|
*
|
package/src/view/text.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
* @module engine/view/text
|
|
7
7
|
*/
|
|
8
|
-
import Node from './node';
|
|
8
|
+
import Node from './node.js';
|
|
9
9
|
/**
|
|
10
10
|
* Tree view text node.
|
|
11
11
|
*
|