froala / wysiwyg-editor

The next generation Javascript WYSIWYG HTML Editor.
https://www.froala.com/wysiwyg-editor
Other
5.3k stars 675 forks source link

TypeError: Cannot read property 'innerHTML' of null" #4046

Open felskov opened 4 years ago

felskov commented 4 years ago

We're seeing reports of runtime errors when running ImageCaptionSpace on user devices, throwing "TypeError: Cannot read property 'innerHTML' of null". We haven't been able to reproduce the error ourselves, but the call stack appears to be:

TypeError: Cannot read property 'innerHTML' of null
    at ImageCaptionSpace (webpack:///./js/froala_editor.js?:8988:74)
    at FE.Bootstrap._mapKeyDown (webpack:///./js/froala_editor.js?:9084:17)
    at trigger (webpack:///./js/froala_editor.js?:2150:32)
    at HTMLDivElement.eval (webpack:///./js/froala_editor.js?:1752:9)
    at HTMLDivElement.eval (webpack:///./js/froala_editor.js?:15734:14)

In the past 7 days we've had around 10 occurrences of this error reported, it seems to happen exclusively in Chrome v85.

Editor version.

3.1.0

OS.

Windows, MacOS

Browser.

Chrome v85

tbertran commented 4 years ago

Same here. It seems to happen consistently at every key stroke when deleting characters with Delete or Backspace.

Editor version. 3.1.0

OS. Windows

Browser. Chrome Version 86.0.4240.111

Syalas commented 2 years ago

This issues still appears in Froala 4.0.7:

Uncaught TypeError: Cannot read properties of null (reading 'innerHTML')