netgen / ibexa-site-api

Site building productivity layer for the Ibexa CMS
https://netgen.io
GNU General Public License v2.0
1 stars 3 forks source link

Editor changes to images within richtext field are not applied on frontend #35

Open indebit opened 3 weeks ago

indebit commented 3 weeks ago

I found that at least 3 changes that are made within the Ibexa backoffice on a embed image, are not applied on the front-end.

Current setup:

Steps to reproduce:

Expected behavior:

Current behavior:

I was in contact with Ibexa support as well regarding this issue, and they couldn't replicate the issue on their instances (without Netgen Ibexaa SiteAPI installed), so they pointed out to the usage of Ibexa Site API, because the value stored within the database is correct:

`

--
Eine gut geplante und hochwertige Küche erleichtert und verschönert Ihnen das Leben in Ihrem Zuhause!​ Custom h1Custom h2Custom h3Custom h4Custom h5Custom h6Custom uppercasemediumWir, von Marquardt Küchen möchten Ihnen bei der Planung Ihrer individuellen  und neuen Küche helfen und die Umsetzung für Sie so positiv und angenehm wie möglich gestalten.​ An Ihrer Traumküche sollen Sie sich jeden Tag aufs Neue erfreuen können - das ist unser Anspruch!​   Beratungstermin vereinbarenterminvereinbarungnoneredleftauto 

`

They suggested to disable Netgen Ibexa SiteAPI and to try it out, which I did, and indeed, the link tag showed up on the frontend (see screenshot attached).

I've also did some debugging and found that the vendor template (vendor\ibexa\core\src\bundle\Core\Resources\views\content_fields.html.twig) doesn't have any value for the parameters (line 443), as it's only an empty array. (see screenshot attached)

Screenshot 2024-10-08 181243 Screenshot 2024-10-08 181828 Screenshot 2024-10-10 140610

indebit commented 3 weeks ago

Screenshot 2024-10-10 142614

This is the preview from the backoffice, which confirms that Ibexa's default behavior renders the richtext field (including links attached) correctly