Solved

Editing CK EDITOR list plugin

Posted on 2010-08-19
1
311 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

752 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