3
votes

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

5

5 Answers

3
votes

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

2
votes

I've found a plugin for ckeditor (which not only allows <dl> tags and so forth but also provides custom buttons for the editor) and created a simple wrapper extension to easily integrate that into TYPO3. In case anyone's interested it's on github as rte_ckeditor_dl.

0
votes

Does this work ?

RTE.default {
    allowTags < RTE.default.proc.allowTags
    proc {
        allowTagsOutside := addToList(dd,dt,dl)
    }
}

documentation

0
votes

Do your own configuration for CKEditor as YAML and add

processing:
  # Tags that are allowed in the content in general
  allowTags:
    - dd
    - dl
    - dt

  ## Tags that are allowed outside of paragraphs
  allowTagsOutside: [dd, dl, dt]
0
votes

editor:
  config:
    allowedContent: true

[..]

processing
  allowTags:
    - dl
    - dt
    - dd