简体   繁体   English

羽毛笔编辑器字母列表

[英]Quill Editor Alphabetic List

Is there anybody that already got an alphabetic list working on Quill Editor?有没有人已经有了在 Quill Editor 上工作的字母列表?

For now you can only List with numeric 1. 2. 3.目前您只能列出带有数字 1. 2. 3 的列表。

I need: ab c.我需要:ab c。

I could replace with JS but thats not the cleanest thing.我可以用 JS 代替,但这不是最干净的东西。

Best Regards此致

Quill defines its list styling in CSS , which you can override yourself by setting a different list-style-type : Quill 在 CSS 中定义了它的列表样式,您可以通过设置不同的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.注意:如您所见,这仅针对list-0 ,这是 Quill 的最低列表缩进级别。 If you want to tweak the counters for other indentation levels, you'll have to target list-1 , list-2 , etc.如果你想调整其他缩进级别的计数器,你必须以list-1list-2等为目标。

Here's a working example .这是一个工作示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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