Solved

Editing CK EDITOR list plugin

Posted on 2010-08-19
1
309 Views
Last Modified: 2012-05-10
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
plugin.js
0
Comment
Question by:brad0525
1 Comment
 
LVL 3

Accepted Solution

by:
WabbitSeason earned 500 total points
ID: 33492222
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!
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question