Opened 8 years ago

Closed 7 years ago

#8429 closed Bug (fixed)

IE7, IE6 - Selection problem when destroying editor in ENTER_BR

Reported by: Jakub Ś Owned by: Frederico Caldeira Knabben
Priority: Normal Milestone:
Component: General Version: 3.5.3
Keywords: IE6 IE7 Cc:

Description (last modified by Jakub Ś)

This issue was reported in our supprot channel (Topic: Excluding auto generated paragraph (<p>) tags from CKeditor)

  1. Insert in your config.js
    config.enterMode = CKEDITOR.ENTER_BR;	
    config.shiftEnterMode = CKEDITOR.ENTER_P;
    
  2. Open AJAX sample
  3. Type "This is some sample text"
  4. Select E.g. "This i[s some sampl]e text"
  5. Remove editor, Create editor, Remove editor

Result: JS erro is thrown
Message: editor.getselection() is null or not an object
Line: 806
URI: /ckeditor/_source/plugins/wysiwygarea/plugin.js

Issue has been reproducible in IE6 and IE7 from CKEditor 3.5.3

Attachments (1)

8429.patch (802 bytes) - added by Frederico Caldeira Knabben 8 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 8 years ago by Jakub Ś

Status: newconfirmed

comment:2 Changed 8 years ago by Jakub Ś

Reproducible from rev [6486]

comment:3 Changed 8 years ago by Jakub Ś

Description: modified (diff)

Changed 8 years ago by Frederico Caldeira Knabben

Attachment: 8429.patch added

comment:4 Changed 8 years ago by Frederico Caldeira Knabben

Owner: set to Frederico Caldeira Knabben
Status: confirmedreview

Old IEs seem to fire selectionchange for documents without a selection. The patch simply checks if the selection exists, avoiding the issue.

comment:5 Changed 7 years ago by Garry Yao

Resolution: fixed
Status: reviewclosed

Expired on trunk.

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