Issue Bug Closed

#90952Link Browser in ckeditor breaks with browser search

Andreas Kienast 04/05/20, 08:08 updated 04/21/20, 10:42

Description

The Link Browser used with ckeditor breaks when selecting e.g. a file when the browser search is used to find a record in the Link Browser.

How to reproduce (tested in Chrome):

  • Select a text in ckeditor
  • Open link browser by clicking the “Link” icon
  • Switch to tab “File”
  • Open browser search (CTRL + F, for example)
  • Search for anything that matches a file
  • Click that file

The browser console of Chrome now logs the error Uncaught TypeError: Cannot read property 'getParent' of null.

In Firefox, the whole text gets linked instead.

The issue is that the browser search creates a new Selection which overrides the previous selection done by the editor.

Reviews 4