Opened 12 years ago
Closed 9 years ago
#9856 closed Bug (fixed)
Divarea breaks native context menu
Reported by: | Bernhard Frauendienst | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.5.4 |
Component: | General | Version: | 4.0 Beta |
Keywords: | Cc: | scott@…, mark@… |
Description
When using the divarea plugin, the native contextmenu no longer works on the content space.
This is caused by the following constellation:
disableContextMenu
is called on the browser chrome- events from the divarea content bubble up to the browser chrome (as opposed to the regular iframe solution)
- =>
preventDefault
is called on thecontextmenu
event in most cases, preventing the context menu to show up
One solution could be to modify the disableContextMenu
listener function to also check for of event target ancestors with the cke_enable_context_menu
class, this would make the handler less performant though.
Another solution could be to prevent the contextmenu
event from bubbling up the contents space, which is what I have used for now as a workaround.
Change History (11)
comment:1 Changed 12 years ago by
Status: | new → confirmed |
---|---|
Version: | 4.0 → 4.0 Beta |
comment:2 Changed 11 years ago by
#11476 was marked as duplicate - config.browserContextMenuOnCtrl doesn't help or wor either.
comment:4 Changed 11 years ago by
Cc: | scott@… added |
---|
comment:6 Changed 9 years ago by
Cc: | mark@… added |
---|
Is there likely to be any progress on this issue soon?
comment:7 Changed 9 years ago by
I have created a pull request: https://github.com/ckeditor/ckeditor-dev/pull/207/commits
comment:8 Changed 9 years ago by
The PR isn't unfortunately correct, but I commented with some more details how a patch and its tests could look like.
comment:9 Changed 9 years ago by
Summary: | divarea breaks native context menu → Divarea breaks native context menu |
---|
comment:10 Changed 9 years ago by
Milestone: | → CKEditor 4.5.4 |
---|
Fixed on master with git:dc88a6c and git:b4effd4 thanks to the pull request.
comment:11 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | confirmed → closed |
If you remove editor menu with
removePlugins : 'liststyle,tabletools,contextmenu'
you will not get anything on right click.This problem can be reproduced in all browsers, only in divarea (iframe and inline editing work fine) from CKE 4 beta.