Opened 13 years ago
Closed 13 years ago
#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 (1)
comment:1 Changed 13 years ago by
Keywords: | comment tag range selection removed |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Version: | 3.6.3 (SVN - trunk) |
DUP of #8732