I have added
- { name: "Data Test", element: "p", attributes: { 'data-test': "test" } }
to my yaml config. I can select data attribute (and see it correct) in editor code. But after saving content elment TYPO3 is also deleting data-tesst="test" from code.
How can I solve this? Thanks for help! Martin
buttons: link: relAttribute: enabled: true targetSelector: disabled: false properties: class: allowedClasses: 'button, button_hell' title: readOnly: false imports: - { resource: "EXT:rte_ckeditor/Configuration/RTE/Processing.yaml" } - { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Base.yaml" } - { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml" } editor: config: # css definitions for the editor contentsCss: "EXT:mw_theme/Resources/Public/Css/rte.css" # can be "default", but a custom stylesSet can be defined here, which fits TYPO3 best format_tags: "p;h1;h2;h3;h4;h5;h6;pre;address" stylesSet: # custom block level style - { name: "Button", element: "a", attributes: { 'class': "button" } } - { name: "Test", element: "p", attributes: { 'data-test': "test" } } toolbar: - [ 'Format', 'Styles' ] - [ 'Bold', 'Italic', 'Underline', 'Blockquote', 'Subscript', 'Superscript'] - [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', 'HorizontalRule' ] - [ 'NumberedList', 'BulletedList'] - [ 'Link', 'Unlink', 'Anchor', 'Table', 'SpecialChar', 'CodeSnippet', 'Youtube' ] - [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord' ] - [ 'Undo', 'Redo', 'RemoveFormat', 'ShowBlocks' ] - [ 'Source', 'Maximize', 'About'] removePlugins: - image extraPlugins: - justify justifyClasses: - text-left - text-center - text-right - text-justify Allow tags processing: allowTags: - dl - dt - dd
page ts:
RTE { default { preset = mw_theme } }`