| 1 | | Add to Cc: inghamc |
| | 1 | Until this ticket is resolved, the following works for me (as of version 4.0.1.1): |
| | 2 | |
| | 3 | |
| | 4 | {{{ |
| | 5 | CKEDITOR.on('dialogDefinition', function(dialogDefinitionEvent) { |
| | 6 | //if ('link' == dialogDefinitionEvent.data.name) { |
| | 7 | var dialogDefinition = dialogDefinitionEvent.data.definition; |
| | 8 | // Get rid of annoying confirmation dialog on cancel |
| | 9 | dialogDefinition.dialog.on('cancel', function(cancelEvent) { |
| | 10 | return false; |
| | 11 | }, this, null, -1); |
| | 12 | //} |
| | 13 | }); |
| | 14 | }}} |
| | 15 | |
| | 16 | The commented '''if''' statement that would limit the confirmation removal to just the ''link'' dialog. |
| | 17 | |
| | 18 | The '''-1''' argument sneakily* inserts this cancel handler before the ''dialog'' plugin's default handler, which will never be invoked by returning '''false'''. |
| | 19 | |
| | 20 | *thanks to alfonsoml for his 2009 blog post |