简体   繁体   中英

Quill Editor Alphabetic List

Is there anybody that already got an alphabetic list working on Quill Editor?

For now you can only List with numeric 1. 2. 3.

I need: ab c.

I could replace with JS but thats not the cleanest thing.

Best Regards

Quill defines its list styling in CSS , which you can override yourself by setting a different list-style-type :

.ql-editor ol li::before {
  content: counter(list-0, lower-alpha) '. ';
}

NB: as you can see, this only targets list-0 , which is Quill's lowest list indentation level. If you want to tweak the counters for other indentation levels, you'll have to target list-1 , list-2 , etc.

Here's a working example .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM