I
I
inkShio2020-08-05 21:11:44
JavaScript
inkShio, 2020-08-05 21:11:44

How to add classes to elements in CKEditor 5 editor?

It is necessary that when you click on a bulleted or numbered list, a class is added to CKEditor . For example

<ul class="myclass1"></ul>
<ol class="myclass2"></ol>


I figured out how to add classes to the headers, to the list elements themselves ( <ul><li class="myclass"></li></ul>), but I can’t figure out how to add a list. Google didn't help =(

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question