@ckeditor/ckeditor5-widget 47.6.0-alpha.9 → 47.6.1-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-widget",
3
- "version": "47.6.0-alpha.9",
3
+ "version": "47.6.1-alpha.0",
4
4
  "description": "Widget API for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,13 +12,13 @@
12
12
  "type": "module",
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-core": "47.6.0-alpha.9",
16
- "@ckeditor/ckeditor5-engine": "47.6.0-alpha.9",
17
- "@ckeditor/ckeditor5-enter": "47.6.0-alpha.9",
18
- "@ckeditor/ckeditor5-icons": "47.6.0-alpha.9",
19
- "@ckeditor/ckeditor5-ui": "47.6.0-alpha.9",
20
- "@ckeditor/ckeditor5-utils": "47.6.0-alpha.9",
21
- "@ckeditor/ckeditor5-typing": "47.6.0-alpha.9",
15
+ "@ckeditor/ckeditor5-core": "47.6.1-alpha.0",
16
+ "@ckeditor/ckeditor5-engine": "47.6.1-alpha.0",
17
+ "@ckeditor/ckeditor5-enter": "47.6.1-alpha.0",
18
+ "@ckeditor/ckeditor5-icons": "47.6.1-alpha.0",
19
+ "@ckeditor/ckeditor5-ui": "47.6.1-alpha.0",
20
+ "@ckeditor/ckeditor5-utils": "47.6.1-alpha.0",
21
+ "@ckeditor/ckeditor5-typing": "47.6.1-alpha.0",
22
22
  "es-toolkit": "1.39.5"
23
23
  },
24
24
  "author": "CKSource (http://cksource.com/)",
package/src/widget.js CHANGED
@@ -339,8 +339,11 @@ export class Widget extends Plugin {
339
339
  if (probe.isEqual(originalSelection)) {
340
340
  return;
341
341
  }
342
- // Move probe one step further to make it visually recognizable.
343
- if (probe.focus.isTouching(originalSelection.focus)) {
342
+ // Move probe one step further to make it visually recognizable
343
+ // but only when there is a block allowing text, and we are not already on the exiting edge of it.
344
+ if (probe.focus.isTouching(originalSelection.focus) &&
345
+ schema.checkChild(probe.focus.parent, '$text') &&
346
+ (isForward ? !probe.focus.isAtEnd : !probe.focus.isAtStart)) {
344
347
  model.modifySelection(probe, { direction: isForward ? 'forward' : 'backward' });
345
348
  }
346
349
  const lastSelectedNode = isForward ? originalSelection.focus.nodeBefore : originalSelection.focus.nodeAfter;