Opened 16 years ago
Closed 15 years ago
#4343 closed New Feature (fixed)
Implement BrowserContextMenuOnCtrl
Reported by: | Alfonso Martínez de Lizarrondo | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.1 |
Component: | UI : Context Menu | Version: | 3.0 |
Keywords: | Review+ | Cc: |
Description
Port that setting from FCKeditor
Attachments (3)
Change History (10)
Changed 15 years ago by
Attachment: | 4343.patch added |
---|
comment:1 Changed 15 years ago by
Keywords: | Review? added |
---|---|
Owner: | set to Garry Yao |
Status: | new → assigned |
comment:2 Changed 15 years ago by
Keywords: | Review- added; Review? removed |
---|
Changed 15 years ago by
Attachment: | 4343_2.patch added |
---|
comment:3 Changed 15 years ago by
Keywords: | Review? added; Review- removed |
---|
Fixing the above mentioned issue and update the patch with #4530.
comment:4 Changed 15 years ago by
Keywords: | Review- added; Review? removed |
---|
It's almost perfect. The only problem is that now you're not considering the default value associated to the setting. In this case, it's "true". In effect, the feature is not available by leaving the config file empty.
The pattern for that is the following, when retrieving the setting:
var browserContextMenuOnCtrl = editor.config.browserContextMenuOnCtrl; browserContextMenuOnCtrl = ( typeof browserContextMenuOnCtrl == 'undefined' || browserContextMenuOnCtrl );
Changed 15 years ago by
Attachment: | 4343_3.patch added |
---|
comment:5 Changed 15 years ago by
Keywords: | Review? added; Review- removed |
---|
comment:6 Changed 15 years ago by
Keywords: | Review+ added; Review? removed |
---|
What about an additional parameter to addTarget, which tells whether to show the browser context menu on CTRL?