netresearch / t3x-rte_ckeditor_image

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

Images are not processed and unwanted attributes #291

Open timofo opened 3 months ago

timofo commented 3 months ago

Bug description The images are not reduced in size and the 300px standard width is not entered in the popup. In the frontend it is written in the source code:

<img class="" src="/fileadmin/user_upload/image.jpg" data-htmlarea-file-uid="2" data-htmlarea-file-table="sys_file" width="1920" height="3400" title="" alt="" data-title-override="true" data-alt-override="true" style="">

When I resize the image in the RTE, the new width and height values are entered correctly in the img tag, but the image is not resized and remains unchanged.

I insertet the static template at first before fluid_styled_content.

Steps to reproduce To reproduce the problem: Insert an image in RTE and look at the frontend ouput.

Expected behavior The image is resized and all the attributes should disappear.

Environment

Documentation Have you checked the readme/documentation?

timofo commented 3 months ago

It seems that the TypoScript is not included. But i can't find my issue. The ImageRenderingController is never called.

timofo commented 3 months ago

Ok. I got it working.

I had to change in setup.typoscript

- lib.parseFunc_RTE {
+ lib.parseFunc {

(Is this working for you with _RTE ???)

Then the attributes are removed and the image controllers are called.

Additionally i had to take the files from the "main" branch. (working image processing)

With version 12.0.2 its not working at all. (no image processing)