@ckeditor/ckeditor5-widget 47.6.0 → 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/dist/index.js CHANGED
@@ -1822,8 +1822,9 @@ function injectFakeCaret(wrapperDomElement) {
1822
1822
  if (probe.isEqual(originalSelection)) {
1823
1823
  return;
1824
1824
  }
1825
- // Move probe one step further to make it visually recognizable.
1826
- if (probe.focus.isTouching(originalSelection.focus)) {
1825
+ // Move probe one step further to make it visually recognizable
1826
+ // but only when there is a block allowing text, and we are not already on the exiting edge of it.
1827
+ if (probe.focus.isTouching(originalSelection.focus) && schema.checkChild(probe.focus.parent, '$text') && (isForward ? !probe.focus.isAtEnd : !probe.focus.isAtStart)) {
1827
1828
  model.modifySelection(probe, {
1828
1829
  direction: isForward ? 'forward' : 'backward'
1829
1830
  });