Opened 12 years ago

Closed 12 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:


How to reproduce:

  1. open the demo,
  2. go to Source mode and paste this:
    <p><!-- BUG -->loren ipsum</p>
  3. go back to WYSIWYG,
  4. press ctrl+A (select all), ctrl+B (for bold) --> BUG!

A quick fix: core/dom/range.js, enlarge() method:

if ( ( sibling.$.offsetWidth > 0 || excludeBrs && && 'br' ) ) && ! '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 12 years ago by Jakub Ś

Keywords: comment tag range selection removed
Resolution: duplicate
Status: newclosed
Version: 3.6.3 (SVN - trunk)

DUP of #8732

Last edited 12 years ago by Jakub Ś (previous) (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy