How do I permit only specific values in Manually editable HTML tags field?

Created on 28 December 2023, about 1 year ago
Updated 27 February 2024, about 1 year ago

Problem/Motivation

I don't know the syntax for the Manually editable HTML tags field in order to restrict the style attribute to specific values of the list-style-type property.

I want to restrict the style attribute for the ol tag to any of the following:

list-style-type: upper-roman;
list-style-type: upper-latin;
list-style-type: lower-roman;
list-style-type: lower-latin;
list-style-type: decimal;

with no other properties and with no other values for the list-style-type property.

How do I accomplish this?

Steps to reproduce

1. Go to simplytest.me
2. For the project, type Drupal and choose Drupal core, latest version of 10
3. Click to create the instance
4. Click manage, then configuration, then text formats
5. On the row for Basic HTML, click configure
6. Under CKEditor 5 plugin settings, view Manually editable HTML tags.
7. Not sure what to do now, as I don't know the syntax for restricting the style attribute to a specific property values.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ’ฌ Support request
Status

Fixed

Version

10.2 โœจ

Component
CKEditor 5ย  โ†’

Last updated about 21 hours ago

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States charles belov San Francisco, CA, US

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @charles belov
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States charles belov San Francisco, CA, US
  • I donโ€™t think it is advantageous to have a documentation request and a support request that are essentially the same.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States charles belov San Francisco, CA, US

    The documentation request is for the UI to be updated, which will take a while, at the very least to the next release. I did the separate support request because I am seeking to accomplish this right now and need the support timely. They are two separate things even though they cover the same topic.

  • Status changed to Fixed about 1 year ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    Restricting styles to specific values is not supported nor will it be supported. See filter_html's strict policy on not allowing any style attribute at all โ€” it's either that or allowing all style attribute values.

    If you want this, a contrib module will need to be used, core will not provide support for this extremely edge case-y feature.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024