Closed r-a-y closed 7 years ago
When the "X" button is clicked multiple times in the floating image toolbar, it removes parent elements as well.
Here's a GIF detailing what happens:
No JS errors in the console. Tested in WordPress 4.2.5 with twentytwelve (also occurs in other themes).
Looks like there is an issue with the removeImage() function in tinymce.image.js.
removeImage()
tinymce.image.js
Update: I've added a PR for this - https://github.com/iseulde/wp-front-end-editor/pull/267/files.
Fixed in 51539d8.
When the "X" button is clicked multiple times in the floating image toolbar, it removes parent elements as well.
Here's a GIF detailing what happens:
No JS errors in the console. Tested in WordPress 4.2.5 with twentytwelve (also occurs in other themes).
Looks like there is an issue with the
removeImage()
function intinymce.image.js
.Update: I've added a PR for this - https://github.com/iseulde/wp-front-end-editor/pull/267/files.