@ckeditor/ckeditor5-widget 0.0.0-nightly-20231227.0 → 0.0.0-nightly-20231228.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.
Potentially problematic release.
This version of @ckeditor/ckeditor5-widget might be problematic. Click here for more details.
- package/package.json +7 -7
- package/src/utils.js +1 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-widget",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20231228.0",
|
4
4
|
"description": "Widget API for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -12,12 +12,12 @@
|
|
12
12
|
"type": "module",
|
13
13
|
"main": "src/index.js",
|
14
14
|
"dependencies": {
|
15
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
16
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
17
|
-
"@ckeditor/ckeditor5-enter": "0.0.0-nightly-
|
18
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
19
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
20
|
-
"@ckeditor/ckeditor5-typing": "0.0.0-nightly-
|
15
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20231228.0",
|
16
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20231228.0",
|
17
|
+
"@ckeditor/ckeditor5-enter": "0.0.0-nightly-20231228.0",
|
18
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20231228.0",
|
19
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20231228.0",
|
20
|
+
"@ckeditor/ckeditor5-typing": "0.0.0-nightly-20231228.0",
|
21
21
|
"lodash-es": "4.17.21"
|
22
22
|
},
|
23
23
|
"author": "CKSource (http://cksource.com/)",
|
package/src/utils.js
CHANGED
@@ -6,7 +6,6 @@
|
|
6
6
|
* @module widget/utils
|
7
7
|
*/
|
8
8
|
import { CKEditorError, toArray } from '@ckeditor/ckeditor5-utils';
|
9
|
-
import { findOptimalInsertionRange as engineFindOptimalInsertionRange } from '@ckeditor/ckeditor5-engine';
|
10
9
|
import { IconView } from '@ckeditor/ckeditor5-ui';
|
11
10
|
import HighlightStack from './highlightstack.js';
|
12
11
|
import { getTypeAroundFakeCaretPosition } from './widgettypearound/utils.js';
|
@@ -259,7 +258,7 @@ export function findOptimalInsertionRange(selection, model) {
|
|
259
258
|
return model.createRange(model.createPositionAt(selectedElement, typeAroundFakeCaretPosition));
|
260
259
|
}
|
261
260
|
}
|
262
|
-
return
|
261
|
+
return model.schema.findOptimalInsertionRange(selection);
|
263
262
|
}
|
264
263
|
/**
|
265
264
|
* A util to be used in order to map view positions to correct model positions when implementing a widget
|