Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list indent html #96

Open
lucasaides opened this issue Dec 28, 2020 · 1 comment
Open

list indent html #96

lucasaides opened this issue Dec 28, 2020 · 1 comment

Comments

@lucasaides
Copy link

lucasaides commented Dec 28, 2020

is there a way to change the html for lists with indent?
in quilljs the html generated from lists with indent looks like this:

<ol>
   <li>list 1</li>
   <li class="ql-indent-1">list 2</li>
   <li class="ql-indent-2">list 3</li>
</ol>

the same delta in the convertor looks like this:

<ol>
   <li>list 1
      <ol>
          <li>list 2
             <ol>
                <li>list 3</li>
             </ol>
          </li>
      </ol>
   </li>
</ol>

this works fine for nested lists, but if I need the first item in the list to be with indent in quill editor it looks great but the html from the convertor looses the indent

quill would look like this: <ol><li class="ql-indent-2">list with indent</li></ol>
and the convertor would look like this: <ol><li>list with indent</li></ol>

I guess the solution would be to add an option for the convertor to not group lists and to not set the indent to 0
like asked in this issue: #60

@lucasaides
Copy link
Author

looking at this pr: #88
it would actually solve the issue.. I can just clear the padding of the ol and do it myself if I have the ql-indent class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant