Skip to content

Style Definitions Dropdown ignores element type #589

@idleog

Description

@idleog

Description

I have following config.json

{
  "list": {
    "properties": {
      "reversed": true,
      "startIndex": true,
      "styles": false
    }
  },
  "style": {
    "definitions": [
      {
        "name": "Fussnote",
        "element": "p",
        "classes": [
          "fussnote"
        ]
      }
    ]
  },
  "removePlugins": [
    "Autoformat"
  ]
}

If I select Fussnote in the dropdown to a ul li item, it adds a p.paragraph within the li tag, which is really not what I want.
I expect that the style dropdown is disabled outside a p-tag, or at least that it is ignored outside p tag

  • Craft version: 5.10.1
  • PHP version: 8.3
  • Database driver & version:
  • Plugins & versions: CKEditor 5.6.1

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions