#16850 closed New Feature (fixed)
Custom context menu disable option
| Reported by: | Marek Lewandowski | Owned by: | Tade0 |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 4.7.0 |
| Component: | General | Version: | 4.7.0 |
| Keywords: | Cc: |
Description (last modified by )
We need an option to disable our custom context menu, even if the plugin is loaded. The thing is that contextmenu plugin is required by plugins like tabletools or liststyle, where it's the only way to see the features added by the plugin.
If we'd remove it from required property, this plugin would not be automatically picked by our online builder, so that's a no-go.
But some customers provide custom implementation of UI, where custom context menu is not needed.
Change History (12)
comment:1 Changed 9 years ago by
| Status: | new → confirmed |
|---|
comment:2 Changed 9 years ago by
| Description: | modified (diff) |
|---|
comment:3 Changed 9 years ago by
| Owner: | set to Tade0 |
|---|---|
| Status: | confirmed → assigned |
comment:4 Changed 9 years ago by
| Status: | assigned → review |
|---|
comment:5 Changed 9 years ago by
| Status: | review → review_failed |
|---|
Fix LGTM, however there's no unit test. It should be easy to write one (probably it would be enough to check if open calls menu's show method).
comment:6 Changed 9 years ago by
| Status: | review_failed → review |
|---|
Added unit tests.
Changes pushed to branch:t/16850.
comment:7 Changed 9 years ago by
| Status: | review → review_failed |
|---|
Actually, after second thoughts, I think that it would be better to have option not for disabling context menu but for enabling it. I did a quick research in our docs and found that we have at least 4 config variables with "enable" in name and 0 with "disable". There are also some similar cases, e.g. resize_enabled.
comment:8 Changed 9 years ago by
| Status: | review_failed → review |
|---|
That's true, but the problem here is that to date the context menu was always enabled and worked out of the box - this is how most users expect it to work now.
The idea behind this feature is that some users want to have other features enabled that normally require the contextmenu plugin, but don't want to have the context menu itself.
comment:10 Changed 9 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | review → closed |
LGTM. Merged with git:56e6fda.
comment:11 Changed 9 years ago by
| Summary: | Context menu disable option → Custom context menu disable option |
|---|
comment:12 Changed 8 years ago by
| Description: | modified (diff) |
|---|

Added a configuration option that simply prevents the context menu from opening.