Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
indebit opened this issue Oct 10, 2024 · 1 comment

Comments

@indebit
Copy link

indebit commented Oct 10, 2024

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:

  • Ibexa DXP 4.6.10
  • Netgen SiteAPI ^6.1.6

Steps to reproduce:

  • Add an image within a richtext field for a certain Content
  • Set a link to that image (maybe also a title for the link and/or set the target)
  • Set a custom size from the default predefined sizes for that image
  • Align the image to any side or center
  • Publish the changes

Expected behavior:

  • Changes made within the CMS are reflected on the frontend

Current behavior:

  • The image is rendered without any changes made on the backoffice: No anchor () tag at all, no alignment and no custom size set.

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
Copy link
Author

indebit commented Oct 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant