Question : Editing CK EDITOR list plugin

I am using CK editor and I need to customize the list function. currently when you click on the list button it will display a a number and you can enter your information. When you hit enter it will then go to the next number. Basically it works like this right now.

<ol>
<li>test</li>
<li>test</li>
<li>test</li>
</ol>

I need it to be more dynamic. I need to be able to create a list like:

<ol>
<li>test
<ol>
<li>Sub1</li>
<li>Sub2 <ol>
<li>Sub-Sub1</li>
<li>Sub-Sub2</li>
<li>Sub-Sub3</li></ol>
</li>
</li>
<li>test</li>
<li>test</li>
</ol>

I have attached the code beacuse I have no idea how to get this done..thanks
Attachments:
 
CK Editor List Plugin
 

Answer : Editing CK EDITOR list plugin

You can already create such a list. Just do it like this:

Click the numbered list button
Type test<enter> 3 times, resulting in your first list
Place your cursor on the end of the first item of the list
Press enter
Click on the Indent control in the CKEditor menu
Type Sub1<enter>
Type Sub2<enter>
Press enter
Click on the Indent button again
Type Sub-Sub1<enter>
Type Sub-Sub2<enter>
Type Sub-Sub3<enter>
You have the exact list of your example!
Random Solutions  
 
programming4us programming4us