You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to refactoring of some core aspects of CKEditor 5, the one-click-correction of LanguageTool stopped working starting with version 35.3.0, released on 2022-11-02.
Click inside the editing area; LanguageTool will underline "earth" in first paragraph as a possible error
Click anywhere inside "earth" to open the LanguageTool correction box
Click on the suggested correction "earth," (blue button)
✔️ Expected result
"earth" should change to "earth,"
❌ Actual result
Text is not changed. JS error is thrown, see Console (Chrome: "Uncaught TypeError: Cannot read properties of null (reading 'root') ...", Firefox: "Uncaught CKEditorError: i is null ...").
It looks like this browser extension is using beforeInput:insertText but it is not providing targetRanges this might be easy to fix by enabling fallback to the DOM document selection.
It would be nice if you can fix this on your end, instead of having CKEditor implement a workaround, as Reinmar suggested.
The text was updated successfully, but these errors were encountered:
Due to refactoring of some core aspects of CKEditor 5, the one-click-correction of LanguageTool stopped working starting with version 35.3.0, released on 2022-11-02.
Reproduction steps
✔️ Expected result
"earth" should change to "earth,"
❌ Actual result
Text is not changed. JS error is thrown, see Console (Chrome: "Uncaught TypeError: Cannot read properties of null (reading 'root') ...", Firefox: "Uncaught CKEditorError: i is null ...").
📃 Other details
I already opened an issue @ ckeditor5 repo, and the team acknowledged the issue as a result of the beforeInput refactoring that came with 35.3.0:
It would be nice if you can fix this on your end, instead of having CKEditor implement a workaround, as Reinmar suggested.
The text was updated successfully, but these errors were encountered: