Ticket #8687 (closed Bug: duplicate)
Presence of comment tags in the Source breaks range selection
| Reported by: | dgaspar | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | |
| Keywords: | Cc: |
Description
How to reproduce:
- open the demo,
- go to Source mode and paste this:
<p><!-- BUG -->loren ipsum</p>
- go back to WYSIWYG,
- press ctrl+A (select all), ctrl+B (for bold) --> BUG!
A quick fix: core/dom/range.js, enlarge() method:
if ( ( sibling.$.offsetWidth > 0 || excludeBrs && sibling.is && sibling.is( 'br' ) ) && !sibling.data( 'cke-bookmark' ) )
The comment nodes are represented by CKEDITOR.dom.node (which doesn't have the is() method) instead of the expected CKEDITOR.dom.element
Change History
Note: See
TracTickets for help on using
tickets.

DUP of #8732