froala / wysiwyg-editor

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

Add image caption in "iframe" mode does no works properly #4624

Open ArtyomMoiseev opened 1 year ago

ArtyomMoiseev commented 1 year ago
Expected behavior.

Usual behavior, like on: https://froala.com/demo-editor-new/

Actual behavior.

When we try to add a caption to an image, an error occurs: Uncaught TypeError: Cannot read properties of null (reading 'firstChild'). Popup window does not disappear, focus does not set to caption. If click several times to "Image caption", the image will wrap several times in a div tag.

Steps to reproduce the problem.
  1. Open https://froala.com/wysiwyg-editor/examples/iframe/
  2. Add any image
  3. Click "Image caption" button
Editor version.

4.0.18

OS.

Ubuntu 22.04

Browser.

Chrome 111

Recording.

add_caption.webm

bjornri commented 1 year ago

We got the same issue.

pawelSzw commented 1 month ago

It still occurs in v 4.2.1