grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

[QUESTION]-Is there a way to add alphabetical ordered list

Open shubhd47 opened this issue 7 years ago • 1 comments

Hey, @artf thanks for creating this awesome library. its really helpful. I am using it in angular and I have used order list with numbers but it would be really helpful if there is a way to add an alphabetical ordered list or in roman numbers I was trying this

this._editor.RichTextEditor.add('orderedList',
          {
            icon: 'a',
            attributes: { title: 'Ordered List',type:'a' },
            result: rte => rte.exec('insertOrderedList'),

          });

but didn't work. please help

shubhd47 avatar Oct 05 '19 16:10 shubhd47

Hi @shubh9415 the default RTE relies on execCommand API so the only available options are insertOrderedList and insertUnorderedList.

artf avatar Oct 06 '19 14:10 artf