Search code examples
ckeditortypo3

Typo3/CKEditor: Allow definition list (dl, dt, dd)


this question is driving me crazy. I'm using typo3 (8.7.13) with CKEditor as the RTE. Now I want to allow to use <dl>, <dt> and <dd> in the source code view mode. But every time I leave the source code view those tags become modified to <p>

<dl>, <dt> and <dd> are lsited in the yaml file under

processing:
  allowTags:
    - dl
    - dt
    - dd

And within the template constants i set:

styles.content.allowTags := addToList(dd)
styles.content.allowTags := addToList(dt)
styles.content.allowTags := addToList(dl)

What more is necessary?

fins wimmer


Solution

  • Yeah, I finaly found the solution based on this topic.

    This needs to be inserted in the yaml config:

    editor:
      config:
        extraAllowedContent:
          - dd
          - dl
          - dt
    

    fin swimmer