Skip to content

Numbered List format is different when editing #7097

@Mike-Ket

Description

@Mike-Ket

Description of the bug

I'm creating a page which uses numbered lists and when editing it the list levels are numbered 8(b)(iv) but when I saved it and looked at the page they are all numbers. So the example would be 8.2.4 where I'm using a "." to separate the levels.

See:

https://www.egtsc.co.uk/prone-some-of-the-things-i-do

I'm using CKEditor 5
Theme: Basis

Backdrop CMS Forum advises:
That looks like a bug. The CKE ordered lists when editing have the correct CSS to format those lists correctly, but when Backdrop displays the body field in Basis, it doesn't contain the css classes to format those.

The CSS would look a bit like this for the normal body field of nodes.


  /* Level 1: Standard Numbers */
  .field-name-body ol { 
    list-style-type: decimal; 
  }

  /* Level 2: Lowercase Letters */
  .field-name-body ol ol { 
    list-style-type: lower-alpha; 
  }

  /* Level 3: Roman Numerals */
  .field-name-body ol ol ol { 
    list-style-type: lower-roman; 
  }

Steps To Reproduce

To reproduce the behavior:

  1. Create a new page and insert a numbered list with several levels.
  2. Save and view the page.

Actual behavior

The list only has numbers.

Expected behavior

Numbered list is same when displayed as it is when edited.

Additional information

Add any other information that could help, such as:

  • Backdrop CMS version: 1.33.1
  • Web server and its version:
  • PHP version:
  • Database sever (MySQL or MariaDB?) and its version:
  • Operating System and its version: W11, current
  • Browser(s) and their versions: Firefox, current

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions