Actions
Bug #90952
closedLink Browser in ckeditor breaks with browser search
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-04-05
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
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.
Actions