@ckeditor/ckeditor5-engine 40.1.0 → 40.2.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 +39 -39
- package/package.json +2 -2
- package/src/conversion/downcastdispatcher.js +3 -2
- package/src/conversion/upcastdispatcher.d.ts +1 -1
- package/src/dataprocessor/htmldataprocessor.d.ts +1 -1
- package/src/dataprocessor/htmldataprocessor.js +1 -1
- package/src/dataprocessor/xmldataprocessor.d.ts +1 -1
- package/src/dataprocessor/xmldataprocessor.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/model/model.d.ts +1 -1
- package/src/model/model.js +1 -1
- package/src/model/schema.d.ts +3 -3
- package/src/model/schema.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@ All changes in the package are documented in the main repository. See: https://g
|
|
|
5
5
|
|
|
6
6
|
Changes for the past releases are available below.
|
|
7
7
|
|
|
8
|
-
## [19.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v18.0.0...v19.0.0) (2020
|
|
8
|
+
## [19.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v18.0.0...v19.0.0) (April 29, 2020)
|
|
9
9
|
|
|
10
10
|
### Features
|
|
11
11
|
|
|
@@ -24,7 +24,7 @@ Changes for the past releases are available below.
|
|
|
24
24
|
* Inlined parent `is()` calls in model and view classes to improve the editor performance. Closes [ckeditor/ckeditor5#6529](https://github.com/ckeditor/ckeditor5/issues/6529). ([ff04509](https://github.com/ckeditor/ckeditor5-engine/commit/ff04509))
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
## [18.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v17.0.0...v18.0.0) (2020
|
|
27
|
+
## [18.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v17.0.0...v18.0.0) (March 19, 2020)
|
|
28
28
|
|
|
29
29
|
### MAJOR BREAKING CHANGES
|
|
30
30
|
|
|
@@ -56,7 +56,7 @@ Changes for the past releases are available below.
|
|
|
56
56
|
* Introduced support for multi-range selections. Closes [ckeditor/ckeditor5#6116](https://github.com/ckeditor/ckeditor5/issues/6116). ([ffce577](https://github.com/ckeditor/ckeditor5-engine/commit/ffce577))
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
## [17.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v16.0.0...v17.0.0) (2020
|
|
59
|
+
## [17.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v16.0.0...v17.0.0) (February 19, 2020)
|
|
60
60
|
|
|
61
61
|
### Features
|
|
62
62
|
|
|
@@ -76,14 +76,14 @@ Changes for the past releases are available below.
|
|
|
76
76
|
* Improved `parseAttributes()` function performance. This results in improved editor data processing speed. Closes [ckeditor/ckeditor5#5854](https://github.com/ckeditor/ckeditor5/issues/5854). ([ecaf056](https://github.com/ckeditor/ckeditor5-engine/commit/ecaf056))
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
## [16.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v15.0.0...v16.0.0) (2019
|
|
79
|
+
## [16.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v15.0.0...v16.0.0) (December 4, 2019)
|
|
80
80
|
|
|
81
81
|
### Other changes
|
|
82
82
|
|
|
83
83
|
* Split debug tools between the engine files. You do not need to add debug plugin to the editor if you want to use `--debug engine` building flag anymore. Closes [ckeditor/ckeditor5#5649](https://github.com/ckeditor/ckeditor5/issues/5649). ([353f091](https://github.com/ckeditor/ckeditor5-engine/commit/353f091))
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
## [15.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v14.0.0...v15.0.0) (2019
|
|
86
|
+
## [15.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v14.0.0...v15.0.0) (October 23, 2019)
|
|
87
87
|
|
|
88
88
|
### MAJOR BREAKING CHANGES
|
|
89
89
|
|
|
@@ -110,7 +110,7 @@ Changes for the past releases are available below.
|
|
|
110
110
|
* Removed the `Selection#getTopMostBlocks()` method. Closes [ckeditor/ckeditor5-widget#95](https://github.com/ckeditor/ckeditor5-widget/issues/95). Closes [ckeditor/ckeditor5-table#199](https://github.com/ckeditor/ckeditor5-table/issues/199). ([7970f17](https://github.com/ckeditor/ckeditor5-engine/commit/7970f17))
|
|
111
111
|
|
|
112
112
|
|
|
113
|
-
## [14.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v13.2.1...v14.0.0) (2019
|
|
113
|
+
## [14.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v13.2.1...v14.0.0) (August 26, 2019)
|
|
114
114
|
|
|
115
115
|
### Features
|
|
116
116
|
|
|
@@ -140,12 +140,12 @@ Changes for the past releases are available below.
|
|
|
140
140
|
* `Mapper#unbindElementsFromMarkerName( markerName )` was replaced by `Mapper#unbindElementFromMarkerName( element, markerName )`.
|
|
141
141
|
|
|
142
142
|
|
|
143
|
-
## [13.2.1](https://github.com/ckeditor/ckeditor5-engine/compare/v13.2.0...v13.2.1) (2019
|
|
143
|
+
## [13.2.1](https://github.com/ckeditor/ckeditor5-engine/compare/v13.2.0...v13.2.1) (July 10, 2019)
|
|
144
144
|
|
|
145
145
|
Internal changes only (updated dependencies, documentation, etc.).
|
|
146
146
|
|
|
147
147
|
|
|
148
|
-
## [13.2.0](https://github.com/ckeditor/ckeditor5-engine/compare/v13.1.1...v13.2.0) (2019
|
|
148
|
+
## [13.2.0](https://github.com/ckeditor/ckeditor5-engine/compare/v13.1.1...v13.2.0) (July 4, 2019)
|
|
149
149
|
|
|
150
150
|
### Features
|
|
151
151
|
|
|
@@ -162,7 +162,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
162
162
|
* Changed how ` `s are generated on the view->DOM rendering. Closes [#1747](https://github.com/ckeditor/ckeditor5-engine/issues/1747). ([da5670a](https://github.com/ckeditor/ckeditor5-engine/commit/da5670a))
|
|
163
163
|
|
|
164
164
|
|
|
165
|
-
## [13.1.1](https://github.com/ckeditor/ckeditor5-engine/compare/v13.1.0...v13.1.1) (2019
|
|
165
|
+
## [13.1.1](https://github.com/ckeditor/ckeditor5-engine/compare/v13.1.0...v13.1.1) (June 6, 2019)
|
|
166
166
|
|
|
167
167
|
### Bug fixes
|
|
168
168
|
|
|
@@ -173,7 +173,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
173
173
|
* Added more cases of affected markers on merging in `model.Writer`. Closes [#1738](https://github.com/ckeditor/ckeditor5-engine/issues/1738). ([01ff6e6](https://github.com/ckeditor/ckeditor5-engine/commit/01ff6e6))
|
|
174
174
|
|
|
175
175
|
|
|
176
|
-
## [13.1.0](https://github.com/ckeditor/ckeditor5-engine/compare/v13.0.0...v13.1.0) (2019
|
|
176
|
+
## [13.1.0](https://github.com/ckeditor/ckeditor5-engine/compare/v13.0.0...v13.1.0) (April 4, 2019)
|
|
177
177
|
|
|
178
178
|
### Features
|
|
179
179
|
|
|
@@ -196,7 +196,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
196
196
|
* The editor will not throw an error when updating an empty fake selection container. Closes [#1714](https://github.com/ckeditor/ckeditor5-engine/issues/1714). ([c48f5a4](https://github.com/ckeditor/ckeditor5-engine/commit/c48f5a4))
|
|
197
197
|
|
|
198
198
|
|
|
199
|
-
## [13.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v12.0.0...v13.0.0) (2019
|
|
199
|
+
## [13.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v12.0.0...v13.0.0) (February 28, 2019)
|
|
200
200
|
|
|
201
201
|
### Features
|
|
202
202
|
|
|
@@ -223,7 +223,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
223
223
|
* Prevented `model.Writer` from inserting empty text nodes. Closes [#1320](https://github.com/ckeditor/ckeditor5-engine/issues/1320). ([47070b5](https://github.com/ckeditor/ckeditor5-engine/commit/47070b5))
|
|
224
224
|
* Prevented `View` from firing the `render` event if there were no changes since the last rendering. Closes [#1653](https://github.com/ckeditor/ckeditor5-engine/issues/1653). Closes [#1660](https://github.com/ckeditor/ckeditor5-engine/issues/1660). ([558638c](https://github.com/ckeditor/ckeditor5-engine/commit/558638c))
|
|
225
225
|
* Renamed the event during selection attributes conversion. `attribute:key` becomes to `attribute:key:$text`. Closes [#1597](https://github.com/ckeditor/ckeditor5-engine/issues/1597). ([fd7734e](https://github.com/ckeditor/ckeditor5-engine/commit/fd7734e))
|
|
226
|
-
* Stopped invoking `view.render()` by `EditingController` when the model document
|
|
226
|
+
* Stopped invoking `view.render()` by `EditingController` when the model document has not changed. Closes [#1653](https://github.com/ckeditor/ckeditor5-engine/issues/1653). ([5d97fd6](https://github.com/ckeditor/ckeditor5-engine/commit/5d97fd6))
|
|
227
227
|
* Fixed memory leaks during editor initialization and destruction (see [ckeditor/ckeditor5#1341](https://github.com/ckeditor/ckeditor5/issues/1341)). ([bf86ffa](https://github.com/ckeditor/ckeditor5-engine/commit/bf86ffa))
|
|
228
228
|
* Undo and redo no longer crashes in scenarios featuring pasting content into earlier pasted content. Closes [[ckeditor/ckeditor5#1385](https://github.com/ckeditor/ckeditor5/issues/1385)](https://github.com/ckeditor/ckeditor5/issues/1385). ([551ab50](https://github.com/ckeditor/ckeditor5-engine/commit/551ab50))
|
|
229
229
|
* Update model selection attributes and markers after each change that affects the selection. Closes [#1673](https://github.com/ckeditor/ckeditor5-engine/issues/1673). ([4f9ac0e](https://github.com/ckeditor/ckeditor5-engine/commit/4f9ac0e))
|
|
@@ -270,7 +270,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
270
270
|
* The `changeAttribute()` downcast converter was removed from public API. Use `conversion.for( 'downcast' ).attributeToAttribute()` instead.
|
|
271
271
|
|
|
272
272
|
|
|
273
|
-
## [12.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v11.0.0...v12.0.0) (2018
|
|
273
|
+
## [12.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v11.0.0...v12.0.0) (December 5, 2018)
|
|
274
274
|
|
|
275
275
|
### Features
|
|
276
276
|
|
|
@@ -348,7 +348,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
348
348
|
* The model `Range.createFromRanges()` method was removed from the public API.
|
|
349
349
|
|
|
350
350
|
|
|
351
|
-
## [11.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v10.2.0...v11.0.0) (2018
|
|
351
|
+
## [11.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v10.2.0...v11.0.0) (October 8, 2018)
|
|
352
352
|
|
|
353
353
|
### Bug fixes
|
|
354
354
|
|
|
@@ -397,7 +397,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
397
397
|
* `model.Writer#setAttribute()` (and `AttributeOperation`) now applies attribute only to the top-level nodes in the `range` (instead of all the nodes in the range).
|
|
398
398
|
|
|
399
399
|
|
|
400
|
-
## [10.2.0](https://github.com/ckeditor/ckeditor5-engine/compare/v10.1.0...v10.2.0) (2018
|
|
400
|
+
## [10.2.0](https://github.com/ckeditor/ckeditor5-engine/compare/v10.1.0...v10.2.0) (July 18, 2018)
|
|
401
401
|
|
|
402
402
|
### Features
|
|
403
403
|
|
|
@@ -413,7 +413,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
413
413
|
Feature: The `schema.getLimitElement()` method now accepts also `Range` and `Position` as a parameter.
|
|
414
414
|
|
|
415
415
|
|
|
416
|
-
## [10.1.0](https://github.com/ckeditor/ckeditor5-engine/compare/v10.0.0...v10.1.0) (2018
|
|
416
|
+
## [10.1.0](https://github.com/ckeditor/ckeditor5-engine/compare/v10.0.0...v10.1.0) (June 21, 2018)
|
|
417
417
|
|
|
418
418
|
### Features
|
|
419
419
|
|
|
@@ -432,7 +432,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
432
432
|
* Renderer now uses partial text replacing when updating text nodes instead of replacing entire nodes. Closes [#403](https://github.com/ckeditor/ckeditor5-engine/issues/403). ([797cd97](https://github.com/ckeditor/ckeditor5-engine/commit/797cd97))
|
|
433
433
|
|
|
434
434
|
|
|
435
|
-
## [10.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v1.0.0-beta.4...v10.0.0) (2018
|
|
435
|
+
## [10.0.0](https://github.com/ckeditor/ckeditor5-engine/compare/v1.0.0-beta.4...v10.0.0) (April 25, 2018)
|
|
436
436
|
|
|
437
437
|
### Other changes
|
|
438
438
|
|
|
@@ -443,7 +443,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
443
443
|
* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information.
|
|
444
444
|
|
|
445
445
|
|
|
446
|
-
## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-engine/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018
|
|
446
|
+
## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-engine/compare/v1.0.0-beta.2...v1.0.0-beta.4) (April 19, 2018)
|
|
447
447
|
|
|
448
448
|
### Bug fixes
|
|
449
449
|
|
|
@@ -452,7 +452,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
452
452
|
* The `bindTwoStepCaretToAttribute()` behavioral helper should not fail in more complex cases. Closes [#1301](https://github.com/ckeditor/ckeditor5-engine/issues/1301). Closes [#1346](https://github.com/ckeditor/ckeditor5-engine/issues/1346). Closes [ckeditor/ckeditor5#937](https://github.com/ckeditor/ckeditor5/issues/937). Closes [ckeditor/ckeditor5#922](https://github.com/ckeditor/ckeditor5/issues/922). Closes [ckeditor/ckeditor5#946](https://github.com/ckeditor/ckeditor5/issues/946). ([f0fd2d8](https://github.com/ckeditor/ckeditor5-engine/commit/f0fd2d8))
|
|
453
453
|
|
|
454
454
|
|
|
455
|
-
## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-engine/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018
|
|
455
|
+
## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-engine/compare/v1.0.0-beta.1...v1.0.0-beta.2) (April 10, 2018)
|
|
456
456
|
|
|
457
457
|
### Features
|
|
458
458
|
|
|
@@ -483,7 +483,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
483
483
|
* Introduced `view.DocumentSelection`. It has protected API and can be modified only by the view writer. Observers creating instance of selection (like `SelectionObserver`, `MutationObserver`) use the `view.Selection` class now.
|
|
484
484
|
|
|
485
485
|
|
|
486
|
-
## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-engine/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018
|
|
486
|
+
## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-engine/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (March 15, 2018)
|
|
487
487
|
|
|
488
488
|
### Major refactoring
|
|
489
489
|
|
|
@@ -491,7 +491,7 @@ In 1.0.0-beta.1 the engine's API has underwent a thorough review which resulted
|
|
|
491
491
|
|
|
492
492
|
Instead, we recommend reading https://ckeditor.com/docs/ckeditor5/latest/framework/guides/architecture/editing-engine.html once more (it will be updated in a couple of days after the release).
|
|
493
493
|
|
|
494
|
-
The good news is that
|
|
494
|
+
The good news is that our focus when designing the new API was on the developer experience. APIs which were dangerous or confusing were removed or hidden and new APIs were added in their place. The engine is now a safer and more useful library and we hope you will enjoy it.
|
|
495
495
|
|
|
496
496
|
### Features
|
|
497
497
|
|
|
@@ -512,7 +512,7 @@ The good news is that the our focus when designing the new API was on developer
|
|
|
512
512
|
|
|
513
513
|
* [Firefox] Added fix for typing space on the edge of inline elements. Closes [ckeditor/ckeditor5#692](https://github.com/ckeditor/ckeditor5/issues/692). ([3ea70f3](https://github.com/ckeditor/ckeditor5-engine/commit/3ea70f3))
|
|
514
514
|
* `DocumenSelection#change:range` event will be fired only once after multiple selection live ranges have changed. Closes [#1281](https://github.com/ckeditor/ckeditor5-engine/issues/1281). ([b26935c](https://github.com/ckeditor/ckeditor5-engine/commit/b26935c))
|
|
515
|
-
* `model.DocumentSelection` should update
|
|
515
|
+
* `model.DocumentSelection` should update its attributes after each change, including external changes. Closes [#1267](https://github.com/ckeditor/ckeditor5-engine/issues/1267). ([b91d967](https://github.com/ckeditor/ckeditor5-engine/commit/b91d967))
|
|
516
516
|
* `Model#insertContent()` will not merge nodes if the model after the merge would violate schema rules. Closes [ckeditor/ckeditor5#730](https://github.com/ckeditor/ckeditor5/issues/730). ([2a73830](https://github.com/ckeditor/ckeditor5-engine/commit/2a73830))
|
|
517
517
|
* `Schema#getLimitElement()` will return a proper limit element (the root element) if one of the selection's ranges have the root element as the limit element. Closes [#1275](https://github.com/ckeditor/ckeditor5-engine/issues/1275). ([050a415](https://github.com/ckeditor/ckeditor5-engine/commit/050a415))
|
|
518
518
|
* Added a 50ms timeout after `Document#focus` event before rendering to be sure that selection changes are processed on Firefox and Safari. Closes [ckeditor/ckeditor5#676](https://github.com/ckeditor/ckeditor5/issues/676). Closes [#1157](https://github.com/ckeditor/ckeditor5-engine/issues/1157). Closes [#1155](https://github.com/ckeditor/ckeditor5-engine/issues/1155). Closes [#1153](https://github.com/ckeditor/ckeditor5-engine/issues/1153). ([aba8e68](https://github.com/ckeditor/ckeditor5-engine/commit/aba8e68))
|
|
@@ -536,7 +536,7 @@ The good news is that the our focus when designing the new API was on developer
|
|
|
536
536
|
* Keep the same marker instance when marker is updated. ([8eba5e9](https://github.com/ckeditor/ckeditor5-engine/commit/8eba5e9))
|
|
537
537
|
* Make `Position` and `Range` immutable in model and view. Closes [#897](https://github.com/ckeditor/ckeditor5-engine/issues/897). ([836dfd8](https://github.com/ckeditor/ckeditor5-engine/commit/836dfd8))
|
|
538
538
|
* Manual test for [#475](https://github.com/ckeditor/ckeditor5-engine/issues/475) now works correctly. Closes [#1271](https://github.com/ckeditor/ckeditor5-engine/issues/1271). ([c2d4cec](https://github.com/ckeditor/ckeditor5-engine/commit/c2d4cec))
|
|
539
|
-
* Methods
|
|
539
|
+
* Methods that modify the model's and view's tree are now protected and should not be used directly in the code. An instance of `Writer` should be used instead. Closes [#738](https://github.com/ckeditor/ckeditor5-engine/issues/738). ([a4f3dad](https://github.com/ckeditor/ckeditor5-engine/commit/a4f3dad))
|
|
540
540
|
* Migrated package styles to PostCSS. Moved visual styles to ckeditor5-theme-lark (see [ckeditor/ckeditor5-ui#144](https://github.com/ckeditor/ckeditor5-ui/issues/144)). ([5f65823](https://github.com/ckeditor/ckeditor5-engine/commit/5f65823))
|
|
541
541
|
* Moved `consumable` parameter to `conversionApi` parameter in downcast. Closes [#1294](https://github.com/ckeditor/ckeditor5-engine/issues/1294). Closes [#1261](https://github.com/ckeditor/ckeditor5-engine/issues/1261). ([731db37](https://github.com/ckeditor/ckeditor5-engine/commit/731db37))
|
|
542
542
|
* Moved `Document#getNearesetSelectionRange` to `Schema`. Closes [#1227](https://github.com/ckeditor/ckeditor5-engine/issues/1227). ([d1838a4](https://github.com/ckeditor/ckeditor5-engine/commit/d1838a4))
|
|
@@ -575,7 +575,7 @@ Feature: `SchemaContext#concat` has been introduced.
|
|
|
575
575
|
* `DataController#parse`, `DataController#toModel`, `ViewConversionDispatcher#convert` gets `SchemaContextDefinition` as a context instead of `String`.
|
|
576
576
|
|
|
577
577
|
|
|
578
|
-
## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-engine/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017
|
|
578
|
+
## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-engine/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (November 14, 2017)
|
|
579
579
|
|
|
580
580
|
### Bug fixes
|
|
581
581
|
|
|
@@ -585,11 +585,11 @@ Feature: `SchemaContext#concat` has been introduced.
|
|
|
585
585
|
|
|
586
586
|
### Other changes
|
|
587
587
|
|
|
588
|
-
* Removed the `renderer-skipped-selection-rendering` warning since it
|
|
588
|
+
* Removed the `renderer-skipped-selection-rendering` warning since it does not bring any value. Closes [#1158](https://github.com/ckeditor/ckeditor5-engine/issues/1158). ([4a5a5d1](https://github.com/ckeditor/ckeditor5-engine/commit/4a5a5d1))
|
|
589
589
|
* The `removeHighlight()` function now accepts descriptor id instead of a `HighlightDescriptor` object. Closes [#1164](https://github.com/ckeditor/ckeditor5-engine/issues/1164). ([7bde6f7](https://github.com/ckeditor/ckeditor5-engine/commit/7bde6f7))
|
|
590
590
|
|
|
591
591
|
|
|
592
|
-
## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-engine/compare/v0.11.0...v1.0.0-alpha.1) (2017
|
|
592
|
+
## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-engine/compare/v0.11.0...v1.0.0-alpha.1) (October 3, 2017)
|
|
593
593
|
|
|
594
594
|
### Bug fixes
|
|
595
595
|
|
|
@@ -608,10 +608,10 @@ Feature: `SchemaContext#concat` has been introduced.
|
|
|
608
608
|
|
|
609
609
|
### BREAKING CHANGES
|
|
610
610
|
|
|
611
|
-
* View and model nodes are now automatically removed from their old parents when they are inserted into new elements. This is important e.g. if you iterate through element's children and they are moved during that iteration. In that case, it
|
|
611
|
+
* View and model nodes are now automatically removed from their old parents when they are inserted into new elements. This is important e.g. if you iterate through element's children and they are moved during that iteration. In that case, it is safest to cache the element's children in an array.
|
|
612
612
|
|
|
613
613
|
|
|
614
|
-
## [0.11.0](https://github.com/ckeditor/ckeditor5-engine/compare/v0.10.0...v0.11.0) (2017
|
|
614
|
+
## [0.11.0](https://github.com/ckeditor/ckeditor5-engine/compare/v0.10.0...v0.11.0) (September 3, 2017)
|
|
615
615
|
|
|
616
616
|
### Bug fixes
|
|
617
617
|
|
|
@@ -621,7 +621,7 @@ Feature: `SchemaContext#concat` has been introduced.
|
|
|
621
621
|
* `DomConverter` should actively prevent unwanted scrolling on focus. Closes [#951](https://github.com/ckeditor/ckeditor5-engine/issues/951). Closes [#707](https://github.com/ckeditor/ckeditor5-engine/issues/707). Closes [#706](https://github.com/ckeditor/ckeditor5-engine/issues/706). ([cb18a95](https://github.com/ckeditor/ckeditor5-engine/commit/cb18a95))
|
|
622
622
|
* `LiveSelection` will correctly set its properties in case of a non-collapsed default range. This will fix loading data which starts with an object element. Closes [#699](https://github.com/ckeditor/ckeditor5-engine/issues/699). ([e6e92e9](https://github.com/ckeditor/ckeditor5-engine/commit/e6e92e9))
|
|
623
623
|
* `LiveSelection` will not read attributes from object element's children. Closes [#986](https://github.com/ckeditor/ckeditor5-engine/issues/986). ([93639d0](https://github.com/ckeditor/ckeditor5-engine/commit/93639d0))
|
|
624
|
-
* `MarkerDelta` transformation should no longer cause editor to crash
|
|
624
|
+
* `MarkerDelta` transformation should no longer cause the editor to crash if a `MarkerOperation` had `null` as its `oldRange` or `newRange`. Closes [#943](https://github.com/ckeditor/ckeditor5-engine/issues/943). ([d328811](https://github.com/ckeditor/ckeditor5-engine/commit/d328811))
|
|
625
625
|
* `model.Element#getNodeByPath()` and `model.DocumentFragment#getNodeByPath()` should work with offsets not indexes (because path is an array of offsets). Closes [#1009](https://github.com/ckeditor/ckeditor5-engine/issues/1009). ([331d2f4](https://github.com/ckeditor/ckeditor5-engine/commit/331d2f4))
|
|
626
626
|
* `Schema.checkAttributeInSelection` should use element's existing attributes when querying schema. Closes [#1110](https://github.com/ckeditor/ckeditor5-engine/issues/1110). ([25ef1a8](https://github.com/ckeditor/ckeditor5-engine/commit/25ef1a8))
|
|
627
627
|
* `view.Range#getTrimmed()` was returning incorrect ranges in some cases. Fixes [#1058](https://github.com/ckeditor/ckeditor5-engine/issues/1058). ([d99c568](https://github.com/ckeditor/ckeditor5-engine/commit/d99c568))
|
|
@@ -630,9 +630,9 @@ Feature: `SchemaContext#concat` has been introduced.
|
|
|
630
630
|
* Fixed a bug when `SplitDelta` transformation might cause undo to throw an error in some cases. Closes [#1084](https://github.com/ckeditor/ckeditor5-engine/issues/1084). ([cb9d409](https://github.com/ckeditor/ckeditor5-engine/commit/cb9d409))
|
|
631
631
|
* Fixed incorrect markers transformations and conversions. Closes [#1112](https://github.com/ckeditor/ckeditor5-engine/issues/1112). Closes [#1080](https://github.com/ckeditor/ckeditor5-engine/issues/1080). Closes [#1079](https://github.com/ckeditor/ckeditor5-engine/issues/1079). ([b71adfb](https://github.com/ckeditor/ckeditor5-engine/commit/b71adfb))
|
|
632
632
|
* Multiple spaces in an empty paragraph are now allowed. Closes ckeditor/ckeditor5-typing[#101](https://github.com/ckeditor/ckeditor5-engine/issues/101). ([9ca61d5](https://github.com/ckeditor/ckeditor5-engine/commit/9ca61d5))
|
|
633
|
-
* Mutation observer will ignore children mutations if as a result of several native mutations the element's children
|
|
633
|
+
* Mutation observer will ignore children mutations if as a result of several native mutations the element's children have not changed. Closes [#1031](https://github.com/ckeditor/ckeditor5-engine/issues/1031). ([552198e](https://github.com/ckeditor/ckeditor5-engine/commit/552198e))
|
|
634
634
|
* None of the editable's ancestors should scroll when the `DomConverter` focuses an editable. Closes [#957](https://github.com/ckeditor/ckeditor5-engine/issues/957). ([e3bc4d1](https://github.com/ckeditor/ckeditor5-engine/commit/e3bc4d1))
|
|
635
|
-
* Placeholder text now will not be hidden if the element has only
|
|
635
|
+
* Placeholder text now will not be hidden if the element has only UI elements. Closes [#1018](https://github.com/ckeditor/ckeditor5-engine/issues/1018). ([299628b](https://github.com/ckeditor/ckeditor5-engine/commit/299628b))
|
|
636
636
|
* Prevent unbinding elements that are reused during rendering. Closes [#922](https://github.com/ckeditor/ckeditor5-engine/issues/922). ([88fcdcb](https://github.com/ckeditor/ckeditor5-engine/commit/88fcdcb))
|
|
637
637
|
* Prevented editor throwing during `SplitDelta` x `RemoveDelta` transformation when SplitDelta's first operation was neither InsertOperation nor ReinsertOperation. Closes [#1065](https://github.com/ckeditor/ckeditor5-engine/issues/1065). ([85e38e1](https://github.com/ckeditor/ckeditor5-engine/commit/85e38e1))
|
|
638
638
|
|
|
@@ -692,13 +692,13 @@ Feature: `SchemaContext#concat` has been introduced.
|
|
|
692
692
|
<paragraph>]Baz</paragraph>
|
|
693
693
|
```
|
|
694
694
|
|
|
695
|
-
The reasoning behind this change is that the user
|
|
695
|
+
The reasoning behind this change is that the user does not consider the last block as selected in such a case (as its selection is not even visible).
|
|
696
696
|
|
|
697
697
|
### BREAKING CHANGES
|
|
698
698
|
|
|
699
699
|
* `ModelConverterBuilder#toStamp()` functionality is renamed to `ModelConverterBuilder#toElement()`. Introduced `ModelConverterBuilder#toVirtualSelection()` which replaces current marker to element conversion.
|
|
700
700
|
* The `DataController#deleteContent()` option was renamed from `merge` to `leaveUnmerged` and the default behavior of the function was changed to merge blocks.
|
|
701
|
-
* Removed `wrapRange()` and `unwrapRange()` functions from `model-to-view-converters.js` as they
|
|
701
|
+
* Removed the `wrapRange()` and `unwrapRange()` functions from `model-to-view-converters.js` as they are no longer used.
|
|
702
702
|
* Renamed marker stamps to marker elements in code and docs.
|
|
703
703
|
* Renamed `Selection#collapse()` to `Selection#setCollapsedAt()`.
|
|
704
704
|
* Renamed `Selection#setFocus()` to `Selection#moveFocusTo()`.
|
|
@@ -712,7 +712,7 @@ Feature: `SchemaContext#concat` has been introduced.
|
|
|
712
712
|
* `History` API for deleting undone deltas has been removed.
|
|
713
713
|
|
|
714
714
|
|
|
715
|
-
## [0.10.0](https://github.com/ckeditor/ckeditor5-engine/compare/v0.9.0...v0.10.0) (2017
|
|
715
|
+
## [0.10.0](https://github.com/ckeditor/ckeditor5-engine/compare/v0.9.0...v0.10.0) (May 7, 2017)
|
|
716
716
|
|
|
717
717
|
### Bug fixes
|
|
718
718
|
|
|
@@ -743,11 +743,11 @@ Feature: `SchemaContext#concat` has been introduced.
|
|
|
743
743
|
* `model.Element#clone()` does not clone children when not in the `deep` mode. See [#689](https://github.com/ckeditor/ckeditor5-engine/issues/689).
|
|
744
744
|
|
|
745
745
|
|
|
746
|
-
## [0.9.0](https://github.com/ckeditor/ckeditor5-engine/compare/v0.8.0...v0.9.0) (2017
|
|
746
|
+
## [0.9.0](https://github.com/ckeditor/ckeditor5-engine/compare/v0.8.0...v0.9.0) (April 5, 2017)
|
|
747
747
|
|
|
748
748
|
### Bug fixes
|
|
749
749
|
|
|
750
|
-
* Changed `DataController#insertContent()` behavior, so it
|
|
750
|
+
* Changed `DataController#insertContent()` behavior, so it does not clone given nodes. Closes [#869](https://github.com/ckeditor/ckeditor5-engine/issues/869). ([45f0f33](https://github.com/ckeditor/ckeditor5-engine/commit/45f0f33))
|
|
751
751
|
* Empty `AttributeDelta` should not be added to batch. Closes [#875](https://github.com/ckeditor/ckeditor5-engine/issues/875). ([425399b](https://github.com/ckeditor/ckeditor5-engine/commit/425399b))
|
|
752
752
|
* Fixed a bug where `LiveRange` position would be lost when using wrap and unwrap deltas. Closes [#841](https://github.com/ckeditor/ckeditor5-engine/issues/841). ([efe3987](https://github.com/ckeditor/ckeditor5-engine/commit/efe3987))
|
|
753
753
|
* Fixed various issues with the move and unwrap deltas conversion. Closes [#847](https://github.com/ckeditor/ckeditor5-engine/issues/847). ([39c34a5](https://github.com/ckeditor/ckeditor5-engine/commit/39c34a5))
|
|
@@ -755,7 +755,7 @@ Feature: `SchemaContext#concat` has been introduced.
|
|
|
755
755
|
|
|
756
756
|
The base algorithm implemented in `Range#_getTransformedByDocumentChange()` will now include all model items between the old and new range boundary. See https://github.com/ckeditor/ckeditor5-engine/issues/877#issuecomment-287740021 for more details.
|
|
757
757
|
* Mutations inserting bogus `<br>` at the end of the block element are filtered out by the mutation observer. Closes [#882](https://github.com/ckeditor/ckeditor5-engine/issues/882). ([3583cae](https://github.com/ckeditor/ckeditor5-engine/commit/3583cae))
|
|
758
|
-
*
|
|
758
|
+
* The renderer should not change the native selection if the one it is about to render is visually similar to the current one. Closes [#887](https://github.com/ckeditor/ckeditor5-engine/issues/887). Closes [#880](https://github.com/ckeditor/ckeditor5-engine/issues/880). ([d8ee5fa](https://github.com/ckeditor/ckeditor5-engine/commit/d8ee5fa))
|
|
759
759
|
* Renderer will unbind DOM elements from view elements when removing them from DOM. Closes [#888](https://github.com/ckeditor/ckeditor5-engine/issues/888). ([86ea5b5](https://github.com/ckeditor/ckeditor5-engine/commit/86ea5b5))
|
|
760
760
|
* Reversed `ReinsertOperation` targets back to same graveyard holder from which the nodes were re-inserted. Closes [#891](https://github.com/ckeditor/ckeditor5-engine/issues/891). ([ea6c881](https://github.com/ckeditor/ckeditor5-engine/commit/ea6c881))
|
|
761
761
|
* View document is now re-rendered after focusing. Closes [#795](https://github.com/ckeditor/ckeditor5-engine/issues/795). ([115a91b](https://github.com/ckeditor/ckeditor5-engine/commit/115a91b))
|
|
@@ -776,7 +776,7 @@ Feature: `SchemaContext#concat` has been introduced.
|
|
|
776
776
|
|
|
777
777
|
### BREAKING CHANGES
|
|
778
778
|
|
|
779
|
-
* Since the default position mapping algorithms are attached with low priority, custom position mapping callbacks added with higher priority
|
|
779
|
+
* Since the default position mapping algorithms are attached with low priority, custom position mapping callbacks added with higher priority will not receive the position calculated by default algorithms in data. To execute default position mapping algorithms and use their value, hook custom callback with lower priority.
|
|
780
780
|
* `BuildModelConverter#fromMarkerCollapsed()` is removed. Use `BuildModelConverter#fromMarker()` instead.
|
|
781
781
|
|
|
782
782
|
### NOTE
|
|
@@ -784,7 +784,7 @@ Feature: `SchemaContext#concat` has been introduced.
|
|
|
784
784
|
* The `insertUIElement()` model to view converter now supports collapsed and non-collapsed ranges.
|
|
785
785
|
|
|
786
786
|
|
|
787
|
-
## [0.8.0](https://github.com/ckeditor/ckeditor5-engine/compare/v0.7.0...v0.8.0) (2017
|
|
787
|
+
## [0.8.0](https://github.com/ckeditor/ckeditor5-engine/compare/v0.7.0...v0.8.0) (March 6, 2017)
|
|
788
788
|
|
|
789
789
|
### Bug fixes
|
|
790
790
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-engine",
|
|
3
|
-
"version": "40.
|
|
3
|
+
"version": "40.2.0",
|
|
4
4
|
"description": "The editing engine of CKEditor 5 – the best browser-based rich text editor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wysiwyg",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-utils": "40.
|
|
26
|
+
"@ckeditor/ckeditor5-utils": "40.2.0",
|
|
27
27
|
"lodash-es": "4.17.21"
|
|
28
28
|
},
|
|
29
29
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -151,6 +151,9 @@ export default class DowncastDispatcher extends EmitterMixin() {
|
|
|
151
151
|
this._convertAttribute(entry.range, entry.attributeKey, entry.attributeOldValue, entry.attributeNewValue, conversionApi);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
+
// Remove mappings for all removed view elements.
|
|
155
|
+
// Remove these mappings as soon as they are not needed (https://github.com/ckeditor/ckeditor5/issues/15411).
|
|
156
|
+
conversionApi.mapper.flushDeferredBindings();
|
|
154
157
|
for (const markerName of conversionApi.mapper.flushUnboundMarkerNames()) {
|
|
155
158
|
const markerRange = markers.get(markerName).getRange();
|
|
156
159
|
this._convertMarkerRemove(markerName, markerRange, conversionApi);
|
|
@@ -160,8 +163,6 @@ export default class DowncastDispatcher extends EmitterMixin() {
|
|
|
160
163
|
for (const change of differ.getMarkersToAdd()) {
|
|
161
164
|
this._convertMarkerAdd(change.name, change.range, conversionApi);
|
|
162
165
|
}
|
|
163
|
-
// Remove mappings for all removed view elements.
|
|
164
|
-
conversionApi.mapper.flushDeferredBindings();
|
|
165
166
|
// Verify if all insert consumables were consumed.
|
|
166
167
|
conversionApi.consumable.verifyAllConsumed('insert');
|
|
167
168
|
}
|
|
@@ -220,7 +220,7 @@ export type UpcastViewCleanupEvent = {
|
|
|
220
220
|
name: 'viewCleanup';
|
|
221
221
|
args: [ViewElement | ViewDocumentFragment];
|
|
222
222
|
};
|
|
223
|
-
type UpcastEvent<TName extends string, TItem extends ViewItem | ViewDocumentFragment> = {
|
|
223
|
+
export type UpcastEvent<TName extends string, TItem extends ViewItem | ViewDocumentFragment> = {
|
|
224
224
|
name: TName | `${TName}:${string}`;
|
|
225
225
|
args: [data: UpcastConversionData<TItem>, conversionApi: UpcastConversionApi];
|
|
226
226
|
};
|
|
@@ -34,7 +34,7 @@ export default class HtmlDataProcessor implements DataProcessor {
|
|
|
34
34
|
constructor(document: ViewDocument);
|
|
35
35
|
/**
|
|
36
36
|
* Converts a provided {@link module:engine/view/documentfragment~DocumentFragment document fragment}
|
|
37
|
-
* to data format &
|
|
37
|
+
* to data format – in this case to an HTML string.
|
|
38
38
|
*
|
|
39
39
|
* @returns HTML string.
|
|
40
40
|
*/
|
|
@@ -26,7 +26,7 @@ export default class HtmlDataProcessor {
|
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Converts a provided {@link module:engine/view/documentfragment~DocumentFragment document fragment}
|
|
29
|
-
* to data format &
|
|
29
|
+
* to data format – in this case to an HTML string.
|
|
30
30
|
*
|
|
31
31
|
* @returns HTML string.
|
|
32
32
|
*/
|
|
@@ -48,7 +48,7 @@ export default class XmlDataProcessor implements DataProcessor {
|
|
|
48
48
|
});
|
|
49
49
|
/**
|
|
50
50
|
* Converts the provided {@link module:engine/view/documentfragment~DocumentFragment document fragment}
|
|
51
|
-
* to data format &
|
|
51
|
+
* to data format – in this case an XML string.
|
|
52
52
|
*
|
|
53
53
|
* @returns An XML string.
|
|
54
54
|
*/
|
|
@@ -31,7 +31,7 @@ export default class XmlDataProcessor {
|
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Converts the provided {@link module:engine/view/documentfragment~DocumentFragment document fragment}
|
|
34
|
-
* to data format &
|
|
34
|
+
* to data format – in this case an XML string.
|
|
35
35
|
*
|
|
36
36
|
* @returns An XML string.
|
|
37
37
|
*/
|
package/src/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export { default as RootAttributeOperation } from './model/operation/rootattribu
|
|
|
30
30
|
export { default as RootOperation } from './model/operation/rootoperation';
|
|
31
31
|
export { default as NoOperation } from './model/operation/nooperation';
|
|
32
32
|
export { transformSets } from './model/operation/transform';
|
|
33
|
-
export { default as DocumentSelection, type DocumentSelectionChangeRangeEvent, type DocumentSelectionChangeMarkerEvent } from './model/documentselection';
|
|
33
|
+
export { default as DocumentSelection, type DocumentSelectionChangeRangeEvent, type DocumentSelectionChangeMarkerEvent, type DocumentSelectionChangeAttributeEvent } from './model/documentselection';
|
|
34
34
|
export { default as Range } from './model/range';
|
|
35
35
|
export { default as LiveRange, type LiveRangeChangeRangeEvent } from './model/liverange';
|
|
36
36
|
export { default as LivePosition } from './model/liveposition';
|
package/src/model/model.d.ts
CHANGED
|
@@ -194,7 +194,7 @@ export default class Model extends Model_base {
|
|
|
194
194
|
* This is a high-level method. It takes the {@link #schema schema} into consideration when inserting
|
|
195
195
|
* the content, clears the given selection's content before inserting nodes and moves the selection
|
|
196
196
|
* to its target position at the end of the process.
|
|
197
|
-
* It can split elements, merge them, wrap bare text nodes with paragraphs, etc. &
|
|
197
|
+
* It can split elements, merge them, wrap bare text nodes with paragraphs, etc. – just like the
|
|
198
198
|
* pasting feature should do.
|
|
199
199
|
*
|
|
200
200
|
* For lower-level methods see {@link module:engine/model/writer~Writer `Writer`}.
|
package/src/model/model.js
CHANGED
|
@@ -240,7 +240,7 @@ export default class Model extends ObservableMixin() {
|
|
|
240
240
|
* This is a high-level method. It takes the {@link #schema schema} into consideration when inserting
|
|
241
241
|
* the content, clears the given selection's content before inserting nodes and moves the selection
|
|
242
242
|
* to its target position at the end of the process.
|
|
243
|
-
* It can split elements, merge them, wrap bare text nodes with paragraphs, etc. &
|
|
243
|
+
* It can split elements, merge them, wrap bare text nodes with paragraphs, etc. – just like the
|
|
244
244
|
* pasting feature should do.
|
|
245
245
|
*
|
|
246
246
|
* For lower-level methods see {@link module:engine/model/writer~Writer `Writer`}.
|
package/src/model/schema.d.ts
CHANGED
|
@@ -225,7 +225,7 @@ export default class Schema extends Schema_base {
|
|
|
225
225
|
* ```
|
|
226
226
|
*
|
|
227
227
|
* Note: When verifying whether the given node can be a child of the given context, the
|
|
228
|
-
* schema also verifies the entire context &
|
|
228
|
+
* schema also verifies the entire context – from its root to its last element. Therefore, it is possible
|
|
229
229
|
* for `checkChild()` to return `false` even though the context's last element can contain the checked child.
|
|
230
230
|
* It happens if one of the context's elements does not allow its child.
|
|
231
231
|
*
|
|
@@ -254,7 +254,7 @@ export default class Schema extends Schema_base {
|
|
|
254
254
|
/**
|
|
255
255
|
* Checks whether the given element (`elementToMerge`) can be merged with the specified base element (`positionOrBaseElement`).
|
|
256
256
|
*
|
|
257
|
-
* In other words &
|
|
257
|
+
* In other words – whether `elementToMerge`'s children {@link #checkChild are allowed} in the `positionOrBaseElement`.
|
|
258
258
|
*
|
|
259
259
|
* This check ensures that elements merged with {@link module:engine/model/writer~Writer#merge `Writer#merge()`}
|
|
260
260
|
* will be valid.
|
|
@@ -942,7 +942,7 @@ export interface SchemaCompiledItemDefinition {
|
|
|
942
942
|
allowAttributes: Array<string>;
|
|
943
943
|
}
|
|
944
944
|
/**
|
|
945
|
-
* A schema context &
|
|
945
|
+
* A schema context – a list of ancestors of a given position in the document.
|
|
946
946
|
*
|
|
947
947
|
* Considering such position:
|
|
948
948
|
*
|
package/src/model/schema.js
CHANGED
|
@@ -326,7 +326,7 @@ export default class Schema extends ObservableMixin() {
|
|
|
326
326
|
* ```
|
|
327
327
|
*
|
|
328
328
|
* Note: When verifying whether the given node can be a child of the given context, the
|
|
329
|
-
* schema also verifies the entire context &
|
|
329
|
+
* schema also verifies the entire context – from its root to its last element. Therefore, it is possible
|
|
330
330
|
* for `checkChild()` to return `false` even though the context's last element can contain the checked child.
|
|
331
331
|
* It happens if one of the context's elements does not allow its child.
|
|
332
332
|
*
|
|
@@ -367,7 +367,7 @@ export default class Schema extends ObservableMixin() {
|
|
|
367
367
|
/**
|
|
368
368
|
* Checks whether the given element (`elementToMerge`) can be merged with the specified base element (`positionOrBaseElement`).
|
|
369
369
|
*
|
|
370
|
-
* In other words &
|
|
370
|
+
* In other words – whether `elementToMerge`'s children {@link #checkChild are allowed} in the `positionOrBaseElement`.
|
|
371
371
|
*
|
|
372
372
|
* This check ensures that elements merged with {@link module:engine/model/writer~Writer#merge `Writer#merge()`}
|
|
373
373
|
* will be valid.
|
|
@@ -884,7 +884,7 @@ export default class Schema extends ObservableMixin() {
|
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
886
|
/**
|
|
887
|
-
* A schema context &
|
|
887
|
+
* A schema context – a list of ancestors of a given position in the document.
|
|
888
888
|
*
|
|
889
889
|
* Considering such position:
|
|
890
890
|
*
|