Opened 13 years ago
Last modified 9 years ago
#8759 assigned New Feature
Add the possibility to remove a context menu item at a certain listener
Reported by: | Sa'ar Zac Elias | Owned by: | Sa'ar Zac Elias |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | IBM | Cc: | monahant@… |
Description
During work, I've encountered a situation in which I need to remove the div options from the context menu in a specfic condition (while leaving it intact in any other situation). This is currently impossible - one can remove an option for the entire instance, and not just that one time.
My suggestion is to allow it with null assignment:
return { editdiv : null };
Attachments (1)
Change History (7)
comment:1 Changed 13 years ago by
Type: | Bug → New Feature |
---|
Changed 13 years ago by
Attachment: | 8759.patch added |
---|
comment:2 Changed 13 years ago by
Owner: | set to Sa'ar Zac Elias |
---|---|
Status: | new → review |
comment:3 Changed 12 years ago by
Cc: | monahant@… added |
---|---|
Keywords: | IBM added |
comment:4 Changed 12 years ago by
Perhaps there could be possibility to add options like add/remove/modify context menu item.
Much more work but more happy users.
Another typical use case except for removing items based on current context is changing their values or adding them.
comment:5 Changed 12 years ago by
Status: | review → assigned |
---|
We should investigate the possibility of having this event-driven, having the editor instance firing either the "contextmenu" or "menu" event, having the list of items (Array) in the data field, so one can manipulate it freely.
comment:7 Changed 9 years ago by
Summary: | Add possibility to remove context menu item at certain listener → Add the possibility to remove a context menu item at a certain listener |
---|
We would also like to be able to remove menu items dynamically in the editor, depending on the current context. Please consider including this feature in an upcoming CKEditor release.