Dynamic Content in html attribute

I would like to use dynamic values in html attributes, such as color. Like here in this screenshot.

It works so far if you don’t leave the html editor.

screenshot_ 2024-10-11 um 12.26.03

But when switching between the HTML editor, RTF or raw, and without changing anything, this is somehow destroyed and can no longer be restored, unless you insert it completely new via the selection menu!

screenshot_ 2024-10-11 um 12.26.14

Hello @Regnalf,

Thanks for writing in!

I cannot replicate the issue on my end. Here is what I have on my local test server:

Kindly check your quotes.

In my case, I had used a headline element, but it doesn’t work in the simple text element either!

I also tried as you described with the single quotes for the style attribute and the double quotes for the dynamic content.

:white_check_mark: As long as you don’t leave the HTML editor or just close it before switching to the others, it works:

screenshot_ 2024-10-12 um 09.00.38

:white_check_mark: Switching to the raw editor and back is also no problem.

screenshot_ 2024-10-12 um 09.00.51

:x: But switching to the Rich Text Editor changes something.

screenshot_ 2024-10-12 um 09.01.13

:x: The color is set to transparent and the quotation marks are automatically swapped. So the style attribute gets double quotation marks and the dynamic content gets single quotation marks.

screenshot_ 2024-10-12 um 09.01.22

And even if you then manually swap the quotation marks again, the color does not return. It only works again if you add the color completely new via the dynamic selection menu.

Hello @Regnalf,

I was able to replicate the issue. As you switch between Rich Text, Raw and HTML , the color will be changed to transparent. I believe that this is a bug. We will report this to our developers.

Please bear with us.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.