Nested ordered list in tinymce

Question

I’m trying to change the behavior of tinymce regarding ordered list (using the plugin advlist), actually if i type an ordered list i’ve got this html :

<ol>
  <li>first item</li>
  <li>second item</li>
  <li>third item</li>
</ol>

if after my “Title 1” i press two times enter my actual list is split and so i have two differents lists, and i dont want that …

i want to be able to insert inside my original ordered list another ordered list, like this :

<ol>
  <li>first item</li>
  <li>second item
    <ol>
      <li>second item first subitem</li>
      <li>second item second subitem</li>
      <li>second item third subitem</li>
    </ol>
  </li> 
  <li>third item</li>
</ol>

I find this post it’s not what i want to do but it explains how to change keyboard behavior, but i am not able to find how to avoid this auto close ol tag …

I check a lot of option in tinymce but it doesn’t seems to be something i can do using options (end_container_on_empty_block, fix_list_elements etc …)

how to avoid auto close ol tag when i do a line return ?

0
Aliiiiiiii 2 years 2020-10-25T03:10:18-05:00 0 Answers 17 views 0

Leave an answer

Browse
Browse