Bug Report: Insertags [nbsp} not working in custom elements

Renaud's Avatar

Renaud

20 Sep, 2024 01:42 PM

Product: Custom Elements Contao
Contao Version: 5.3.15
Browser and version: Chrome Latest

Rocksolid Custom element 2.4.11

Hi!
I noticed that [nbsp] are not working anymore in custom elements.

I thing others (https://docs.contao.org/manual/en/article-management/insert-tags/#b...) a not working to.

They are working in native content.

Do have the same result ?

Thank you.

  1. Support Staff 1 Posted by RockSolid Theme... on 20 Sep, 2024 02:16 PM

    RockSolid Themes's Avatar

    Thank you for submitting your question!

    As you can see in documentation:

    Since Contao 5 this is no longer automatically the case for individual DCA fields. In your own DCA fields you will need to enable the conversion via 'basicEntities' => true in the eval definitions.

    So you need to enable that in your custom element for the desired fields using
    'eval' => ['basicEntities' => true],

  2. 2 Posted by Renaud on 20 Sep, 2024 02:21 PM

    Renaud's Avatar

    Ho man!

    I've some work to do... :p

    Thank you for your fast and kind answert!

  3. 3 Posted by Renaud on 20 Sep, 2024 02:22 PM

    Renaud's Avatar

    ho man!

    I've some work to do!

    Thank you for your fast and kind answer.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • Capture_d'écran_2024-09-20_152951.png 107 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac