netresearch / t3x-rte_ckeditor_image

Image support in CKEditor for the TYPO3 ecosystem
GNU Affero General Public License v3.0
56 stars 65 forks source link

Embedded images (data:image) are not displayed in RTE #228

Closed sypets closed 1 year ago

sypets commented 1 year ago

Bug description Related to #226, will also be handled with PR: #227

Embedded images (starting with "data:image") are not displayed in RTE.

Steps to reproduce To reproduce the problem:

  1. copy-paste an image into RTE (e.g. create in Gimp, select all, copy). Result: Image is displayed in RTE
  2. save
  3. check if image is displayed in RTE: it is not

The reason is not the saving to DB but the loading from DB. (You can cross check the DB entry).

Expected behavior

If the embedding of images is not prevented entirely (by some other measure), the image should be displayed. Right now, the behaviour when using rte_ckeditor_image is inconsistent. The image is saved to DB, but is not rendered correctly (see #226) and is not displayed in RTE (see this issue)

Screenshots or logs

After copy-pasting:

image

After saving:

image

Code

Netresearch\RteCKEditorImage\Database\RteImagesDbHook::transformTextForRichTextEditor

Environment

Documentation Have you checked the readme/documentation?

Core behaviour

I tested the behaviour with only the core (v11): Here, the image is removed on save

Additional information