Opened 18 years ago

Last modified 17 years ago

#958 closed New Feature

Context menu - supporting parameters — at Version 2

Reported by: Batalf Owned by: Alfonso Martínez de Lizarrondo
Priority: Normal Milestone: FCKeditor 2.6
Component: UI : Context Menu Version:
Keywords: Review+ Cc:

Description (last modified by Alfonso Martínez de Lizarrondo)

I have searched for this feature, but haven't found it.

What we need is the support for passing parameters from context menu item. We have implemented a list of paragraph styles in the context menu

Style
 |--- Style 1
      Style 2
      Style 3
      etc.

"Style 1", "Style 2" and "Style 3" will all call a function named "SetParagraphStyle". This function will assign the current <p> paragraph to a css class name. This class name is the param we need to send to this function.

I can't see that the AddItem method supports parameters.

Is this something that could be implemented? Or are there any workarounds?

Change History (3)

comment:1 Changed 18 years ago by Alfonso Martínez de Lizarrondo

Keywords: context menu parameters menu item removed
Priority: HighNormal

You can create several commands (just one constructor and use several instances) and then set in each instance the parameter that you want when you are adding them to the context menu items.

comment:2 Changed 17 years ago by Alfonso Martínez de Lizarrondo

Description: modified (diff)
Owner: set to Alfonso Martínez de Lizarrondo

Changed 17 years ago by Alfonso Martínez de Lizarrondo

Attachment: 958.patch added

Proposed SVN patch

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