Opened 5 years ago

Closed 5 years ago

#11517 closed Bug (expired)

IE 8 triggers beforeUnload event when toolbar button is clicked

Reported by: Arkadiy Butermanov Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

Environment:

Browser: Internet Explorer 8 OS: Windows XP

Description:

When I try to apply some formatting on text (using toolbar buttons: Bold for example), Alert message is displayed (see attached screenshot)

How to fix:

I think you should add evt.preventDefault() in onClick handler function for toolbar buttons. Because IE is triggering beforeUnload event any time when link is clicked.

Temporary fix:

I have fixed above reported issue temporary using this:

CKEDITOR.on 'instanceReady', (event) ->
  if CKEDITOR.env.ie
    $('a.cke_button').removeAttr('href')

Attachments (1)

ScreenShot.png (31.1 KB) - added by Arkadiy Butermanov 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by Arkadiy Butermanov

Attachment: ScreenShot.png added

comment:1 Changed 5 years ago by Jakub Ś

Keywords: ie ie9 windows beforeunload onbeforeunload removed
Status: newpending
Version: 4.3.1
  1. Which editor you are using - inline or classic iframed?
  2. I have tried belo code in latest CKEditor 4.3.2 and IE but I haven't got any problems with onbeforeunload popup.
    window.onbeforeunload=function(){return 'test'};
    
  3. Could you please give me more details regarding how to reproduce this issue in default editor?

comment:2 Changed 5 years ago by Piotrek Koszuliński

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