Solved

Editing CK EDITOR list plugin

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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to dynamically set the form action using jQuery.
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…

762 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