1

TYPO3 10.4.20

I have styled an ordered list and I want to use a start-number.

In my YAML I have added:

editor:
  config:
    extraAllowedContent:
      - ol[*]

# Allow s and u tag
processing:
  allowAttributes: [ data-count, start ]
  HTMLparser_db:
    tags:
      ol:
        allowedAttribs: "start"

In the editor everything is fine:

<ol start="5">
    <li><strong>Text</strong><br />
    More Text</li>
    <li><strong>Text</strong><br />
    More Text</li>
</ol>

The attribute start="5" is saved.

But in the frontend the start="5" is gone.

What do I need?

Peter Kraume
  • 3,577
  • 2
  • 21
  • 39
Mario Wilhelm
  • 308
  • 2
  • 14

1 Answers1

-1

Try this, add some additional configuration in your preset config. Check it out below:

# Load default processing options
imports:
    - { resource: "EXT:web_conf/Configuration/YAML/Processing.yaml" }

# Add configuration for the editor
# For complete documentation see http://docs.ckeditor.com/#!/api/CKEDITOR.config
editor:
  config:
    allowedContent: true
    extraAllowedContent: "*(*);*{*}"
    fillEmptyBlocks: false
    tabSpaces: 0
    forcePasteAsPlainText: true
    entities_additional: ''
    removePlugins: null

Your processing configuration seems correct. So,let it be.

# Allow s and u tag
processing:
  allowAttributes: [ data-count, start ]
  HTMLparser_db:
    tags:
      ol:
        allowedAttribs: "start"

This works for me.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Geee
  • 2,217
  • 15
  • 30