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

PHP Warning: Undefined array key "plainImageMode" when insert a SVG Image #205

Closed HorstBaumann closed 1 year ago

HorstBaumann commented 1 year ago

when I insert a SVG I can save the element (FrontEnd works fine). but further savings of the element throw an error:

PHP Warning: Undefined array key "plainImageMode" in /srv/www/html/typo3conf/ext/rte_ckeditor_image/Classes/Database/RteImagesDbHook.php line 245

changing and saving of the element is impossible

JPG/PNG works fine

the code fresh after inserting the images (before saving):

PNG: <img alt="" data-alt-override="true" data-htmlarea-file-table="sys_file" data-htmlarea-file-uid="2" data-title-override="true" src="https://website.xy/typo3/image/process?token=3f5908a18fd8910b5a5359663db9c079dc9aaba9&amp;id=3163" style="height:100px; width:100px" title="" />

SVG: <img alt="" data-alt-override="true" data-htmlarea-file-table="sys_file" data-htmlarea-file-uid="38" data-title-override="true" src="/fileadmin/user_upload/images/icons/logo.svg" style="height:100px; width:100px" title="" />

AFTER SAVING PNG: <img alt="" src="https://website.xy/typo3/image/process?token=3f5908a18fd8910b5a5359663db9c079dc9aaba9&amp;id=3163" style="height:100px; width:100px" />

SVG: <img alt="" src="/fileadmin/user_upload/images/icons/logo.svg" style="height:100px; width:100px" />

rte_ckeditor_image 11.0.6 TYPO3 11.5.21 PHP 8.0