Opened 10 years ago
Last modified 10 years ago
#13235 confirmed Bug
Change event not triggered when using the browser context menu
Reported by: | Irina | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.2 |
Keywords: | IBM | Cc: | Satya Minnekanti |
Description (last modified by )
To Reproduce:
- Open any sample
- Type in the console:
CKEDITOR.instances[EDITOR].on('change', function(){console.log('change...')});
- Type anything in the editor ( event is triggered on every key press )
- CTRL + A to select all the text or highlight it with the mouse
- Ctrl + Right click to get browser context menu
- Select Delete menu option
Problem: The event is not triggered
Attachments (2)
Change History (5)
comment:1 Changed 10 years ago by
Description: | modified (diff) |
---|---|
Status: | new → pending |
Changed 10 years ago by
Attachment: | contextmenuincluded.png added |
---|
comment:2 Changed 10 years ago by
Hello,
Pratically in our scenario we're forcing the editor to use the browser context menu. In that menu there are some options that can actually modify the content in the editor, like the "Cut" and "Delete" options.
I've attached a listener to the "change" event, and whenever those options are used, the event is not triggered.
For us is a high priority change that needs to be taken.
So please let us know something about it.
Thanks.
Best Regards.
Changed 10 years ago by
Attachment: | replacebycodex.html added |
---|
comment:3 Changed 10 years ago by
Status: | pending → confirmed |
---|---|
Version: | 4.4.6 → 4.2 |
Please use attached sample to reproduce this issue. Run the file from samples folder with console opened.
Results: Cut, Delete Undo and Redo native context menu options fire input event but change event is not fired.
Problem can be reproduced from CKEditor 4.2.
There is no 'Delete' option in context menu. There is 'Cut' option and it is possible to use it only in IE and it works - it fires change event.
Have you perhaps implemented this Delete option on your own? If that is the case then perhaps the simplest workaround is firing chnage event inside your custom code
editor.fire( 'change' );