List not being applied to image or table.
I am editing existing docs within CKEditor 5. The docs returned from the server with ordered list <ol>, is in the below format. The ordered list allows for images and tables to exist inside the list.
Example of Docs returned
<ol>
<li>
Navigate to the homepage
<br>
<br>
<img src="/someimage">
<br>
<br>
</li>
<li>
Navigate to the index
<br>
<br>
<img src="/anotherimage">
<br>
<br>
</li>
<li>"Enter details"
<br>
<br>
<table>
<tbody>
<tr>
<td><strong>Field</strong> </td>
<td><strong>Explanation</strong> </td>
</tr>
<tr>
<td>xxxxx</td>
<td>xxxxxxxxxxxxxxxxxxxxxxxxxxx</td>
</tr>
</tbody>
</table>
</li>
</ol>
When we edit and save the doc the ordered list is now in the following format. And as you can see the images and table are now outside the list messing up the numbering of the article.
Saved format
<ol>
<li>Navigate to the homepage
<br><br>
</li>
</ol>
<figure class="image"><img src="/someimage"></figure>
<ol>
<li><br><br> </li>
<li>Navigate to the index<br><br> </li>
</ol>
<figure class="image"><img src="/anotherimage"></figure>
Is there a way to allow images and tables inside of ordered lists?
I have created some simple plugins for divs and hr's but this is really confusing, any help would be great.
Hi, this feature is on our to-do list, but unfortunately, due to other priorities, we can't provide any ETA. Feel free to add 👍 and comment in the ticket - https://github.com/ckeditor/ckeditor5-list/issues/47.