froala / wysiwyg-editor

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

Cannot read property 'getBoundingClientRect' of undefined" #3608

Open brycehill opened 5 years ago

brycehill commented 5 years ago

This may be similar to https://github.com/froala/wysiwyg-editor/issues/3589 as it seems to be happening when there is a list of htmlAllowedAttrs present.

Expected behavior.

No error is thrown

Actual behavior.

This error is thrown" "Uncaught TypeError: Cannot read property 'getBoundingClientRect' of undefined"

Steps to reproduce the problem.
  1. Insert a video
  2. Press ENTER
  3. Type in text
  4. Click on the text you just typed in

https://jsfiddle.net/6d37jq2w/1/

Editor version.

3.0.4

OS.

Mac OS

Browser.

Chrome

Recording.

2019-08-14 16 07 44

casualuser commented 5 years ago

hello this is indeed an issue discovered previously but it looks like not all conditions were handled for fixing it thx for clear reproducing steps - we will fix it and include in next upcoming release 3.0.6 (3.0.5 already is baking)

shah20 commented 4 years ago

this issue exists in 3.0.6 also