header icon indicating copy to clipboard operation
header copied to clipboard

levels option doesn't work

Open adaptedbee opened this issue 1 year ago • 3 comments

I set levels: [1, 2] but anyway all six headers are shown in the menu. Version 2.8.7 image image

adaptedbee avatar Sep 03 '24 13:09 adaptedbee

I'm facing the same issue.

levels and defaultLevel are not taken into account.

nflorentin avatar Nov 13 '24 13:11 nflorentin

Hello. Facing same. Any ETA on this?

Puspendert avatar Dec 30 '24 01:12 Puspendert

Hi, this does work for me but I am using a little bit different config

version 2.8.8

header: {
  class: Header,
  inlineToolbar: true,
  toolbox: [
    {
      title: 'Heading 1',
      data: {
        level: 1,
      },
    },
    {
      title: 'Heading 2',
      data: {
        level: 2,
      },
    },
    {
      title: 'Heading 3',
      data: {
        level: 3,
      },
    },
    {
      title: 'Heading 4',
      data: {
        level: 4,
      },
    },
    {
      title: 'Heading 5',
      data: {
        level: 2,
      },
    },
  ],
  config: {
    placeholder: 'Enter a header',
    levels: [1, 2, 3, 4, 5],
    defaultLevel: 3,
  },
}

kmlzjc avatar Sep 24 '25 07:09 kmlzjc