Opened 15 years ago

Closed 13 years ago

#3941 closed New Feature (invalid)

Creation of Paragraph and Sub-Paragraph structure on pressing "indent" button

Reported by: Deepa Owned by:
Priority: Normal Milestone:
Component: Core : Lists Version: FCKeditor 2.6.4
Keywords: Discussion Cc:

Description

Hi,

First of all I wish to thank all those who have contributed to this tool. It works amazingly well. I'm using FCKEditor 2.6.4.1 for my project work. I'm using the following software for my project: 1) JavaScript, HTML, 2) Operating System: Linux, 3) Browser: Firefox. I have integrated this editor to my existing project. It is working great. However, I was asked to add new features to it. I need paragraph, sub-paragraph like structure. To be more clear following is the kind of structure I need to create:

*

1. 2.

a. b.

(i) (ii)

aa. ab. ac.

(iii)

aa. ab.

(iv)

c.

(i)

aa.

(ii)

d.

a.

(i)

aa. ab.

(ii)

b.

(i)

4.

*

The structure has to follow this pattern only. For paragraph it starts with 1. For sub-paragraph it starts with a. For sub sub paragraph it starts with i (small roman numeral). For sub sub sub paragraph it starts with aa. I'm actually able to create this structure. However, whenever I need sub paragraphs I have to right click and set the ordered list element's "type" attribute and "start" attribute to its appropriate value.

I need a feature using which we get the above pattern when the user presses "indent" button or "tab" key (whichever is convenient).

Again, I'm using 2 such editors on the same page. My requirement is that first editor should start with paragraph number 1. We must then keep track of the number of paragraphs (in the above example it is 4) entered by the user in the first editor. Then the paragraph number should continue from the first editor. So in my example the second editor should start with number 5 when it receives the focus or when the user starts entering the value.

It would really help me if you could tell me how I can modify the editor to get the desired result. I tried to learn the code. But since I'm a beginner I feel that the code for this editor is very vast and I'm unable to trace the necessary code.

I would appreciate if any further help is provided on how to change the code and what are the files to access for this purpose.

Thank you all once again for this editor and for your help.

Change History (4)

comment:1 in reply to:  description ; Changed 15 years ago by Garry Yao

Keywords: Discussion added
Milestone: CKEditor 3.x

Replying to Deepa: Thanks you for proposing this nice feature, valuable for people who seeks for creating MS-WORD mimics list type.

As you noticed that FCKEditor will be soon reach it's last release, so CKEditor 3.x will be more likely the right version if we are intended to add any new features like this. I'll keep it open for future discussion.

For paragraph it starts with 1. For sub-paragraph it starts with a. For sub sub paragraph it starts with i (small roman numeral). For sub sub sub paragraph it starts with aa. I need a feature using which we get the above pattern when the user presses "indent" button or "tab" key (whichever is convenient).

From your description, it's obviously that this's a specific feature that you require, which means we're probably not going to provide, instead, we're likely to provide more generic feature like MS-WORD;

  1. Dialog providing options for change list type and start number;
  2. Dialog for assigning list type and start number binding with list level;

I would appreciate if any further help is provided on how to change the code and what are the files to access for this purpose.

Of course, if you want to achieve this with FCKEditor, you need to create a plugin, which is as easy as understanding part of the list command source:FCKeditor/trunk/editor/_source/commandclasses/fcklistcommands.js codes.

Again, I'm using 2 such editors on the same page. My requirement is that first editor should start with paragraph number 1. We must then keep track of the number of paragraphs (in the above example it is 4) entered by the user in the first editor. Then the paragraph number should continue from the first editor. So in my example the second editor should start with number 5 when it receives the focus or when the user starts entering the value.

At last, this feature is about across-editor communication, which require you to writing some gluing codes based on the editor API.

comment:2 in reply to:  1 Changed 15 years ago by Deepa

Replying to garry.yao:Thank you for your assistance. My requirements are very specific to my organization. Hence, it is a better solution to make the editor more generic so that it reaches as many people as possible. So, I'll try to learn the commands and then start coding for a new plugin as suggested by you. Once again I would like to thank you for your time.

Replying to Deepa: Thanks you for proposing this nice feature, valuable for people who seeks for creating MS-WORD mimics list type.

As you noticed that FCKEditor will be soon reach it's last release, so CKEditor 3.x will be more likely the right version if we are intended to add any new features like this. I'll keep it open for future discussion.

For paragraph it starts with 1. For sub-paragraph it starts with a. For sub sub paragraph it starts with i (small roman numeral). For sub sub sub paragraph it starts with aa. I need a feature using which we get the above pattern when the user presses "indent" button or "tab" key (whichever is convenient).

From your description, it's obviously that this's a specific feature that you require, which means we're probably not going to provide, instead, we're likely to provide more generic feature like MS-WORD;

  1. Dialog providing options for change list type and start number;
  2. Dialog for assigning list type and start number binding with list level;

I would appreciate if any further help is provided on how to change the code and what are the files to access for this purpose.

Of course, if you want to achieve this with FCKEditor, you need to create a plugin, which is as easy as understanding part of the list command source:FCKeditor/trunk/editor/_source/commandclasses/fcklistcommands.js codes.

Again, I'm using 2 such editors on the same page. My requirement is that first editor should start with paragraph number 1. We must then keep track of the number of paragraphs (in the above example it is 4) entered by the user in the first editor. Then the paragraph number should continue from the first editor. So in my example the second editor should start with number 5 when it receives the focus or when the user starts entering the value.

At last, this feature is about across-editor communication, which require you to writing some gluing codes based on the editor API.

comment:3 Changed 14 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.x

Milestone CKEditor 3.x deleted

comment:4 Changed 13 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

FCKeditor was retired and is no longer supported. All active development was moved to its successor, CKEditor 3.x, that is a fully mature and far superior product. We recommend you upgrade as soon as possible.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy