CKEditor 5 saves a data-list-item-id attribute on every list item, which it only needs inside the editor; it bloated the frontend HTML and the RTE content the API and the content feed hand to MyE&P. Both RTE presets now import ep_theme's Processing.yaml, which removes the attribute on the way into the database (exitHTMLparser_db); everything else passes unchanged. Content saved since the go-live is cleaned once by hand after the deploy (.ddev/plans/sql/2026-10-26-rte-list-item-ids.sql). Checked locally as an editor: an RTE field with list item ids is stored without them, other attributes (class on li, data-* on links) stay; without the change the ids are stored. Co-Authored-By: Claude Opus 5.5 <[email protected]>
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
imports:
|
|
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Processing.yaml" }
|
|
- { resource: "EXT:ep_theme/Configuration/RTE/Processing.yaml" }
|
|
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Base.yaml" }
|
|
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml" }
|
|
|
|
editor:
|
|
config:
|
|
height: 100
|
|
disableNativeSpellChecker: false
|
|
contentsCss:
|
|
- "EXT:ep_theme/Resources/Public/css/rte.css?v=2020.02-01"
|
|
|
|
stylesSet:
|
|
- { name: "Button", element: "a", attributes: { 'class': 'rte-button' } }
|
|
- { name: "Button volle Breite", element: "a", attributes: { 'class': 'rte-button--full' } }
|
|
|
|
toolbarGroups:
|
|
- { name: paragraph, groups: [ list] }
|
|
- "/"
|
|
- { name: links, groups: [ links ] }
|
|
- { name: tools, groups: [ specialchar ] }
|
|
- { name: document, groups: [ mode ] }
|
|
|
|
format_tags: "p;h1;h2;h3;h4"
|
|
|
|
removePlugins:
|
|
- image
|
|
|
|
removeButtons:
|
|
- Anchor
|
|
- Underline
|
|
- Strike
|
|
|
|
buttons:
|
|
link:
|
|
queryParametersSelector:
|
|
enabled: 1
|