Solved

Editing CK EDITOR list plugin

Posted on 2010-08-19
1
305 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
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, …
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)
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now