Opened 14 years ago
Closed 14 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 )
This issue was reported in our supprot channel (Topic: Excluding auto generated paragraph (<p>) tags from CKeditor)
- Insert in your config.js
config.enterMode = CKEDITOR.ENTER_BR; config.shiftEnterMode = CKEDITOR.ENTER_P;
- Open AJAX sample
- Type "This is some sample text"
- Select E.g. "This i[s some sampl]e text"
- 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)
Change History (6)
comment:1 Changed 14 years ago by
| Status: | new → confirmed |
|---|
comment:2 Changed 14 years ago by
comment:3 Changed 14 years ago by
| Description: | modified (diff) |
|---|
Changed 14 years ago by
| Attachment: | 8429.patch added |
|---|
comment:4 Changed 14 years ago by
| Owner: | set to Frederico Caldeira Knabben |
|---|---|
| Status: | confirmed → review |
Old IEs seem to fire selectionchange for documents without a selection. The patch simply checks if the selection exists, avoiding the issue.

Reproducible from rev [6486]