Opened 4 years ago

Last modified 4 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 Jakub Ś)

To Reproduce:

  1. Open any sample
  2. Type in the console:
CKEDITOR.instances[EDITOR].on('change', function(){console.log('change...')});
  1. Type anything in the editor ( event is triggered on every key press )
  2. CTRL + A to select all the text or highlight it with the mouse
  3. Ctrl + Right click to get browser context menu
  4. Select Delete menu option

Problem: The event is not triggered

Attachments (2)

contextmenuincluded.png (172.0 KB) - added by Irina 4 years ago.
replacebycodex.html (6.7 KB) - added by Jakub Ś 4 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 4 years ago by Jakub Ś

Description: modified (diff)
Status: newpending

Select Delete menu option

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' );

Changed 4 years ago by Irina

Attachment: contextmenuincluded.png added

comment:2 Changed 4 years ago by giorgio

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 4 years ago by Jakub Ś

Attachment: replacebycodex.html added

comment:3 Changed 4 years ago by Jakub Ś

Status: pendingconfirmed
Version: 4.4.64.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.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy