Opened 14 years ago

Closed 14 years ago

#5929 closed Bug (duplicate)

Cursor not move inside style elements

Reported by: Alessandro Owned by:
Priority: Normal Milestone:
Component: General Version: SVN (CKEditor) - OLD
Keywords: Chrome Confirmed Cc:

Description (last modified by Tobiasz Cudnik)

I'm not sure if this is a bug (i.e. the code say A and does B), but for sure it seems an usability issue, so I report it.

Looking at the source styles/plugin.js, inside applyInlineStyle() function, there is

if (range.collapsed) {
    // ...
    // Place the selection right inside the empty element.
    range.moveToPosition( collapsedElement, CKEDITOR.POSITION_BEFORE_END );
    // ...
}

Which, according to range's source code, shall move the caret inside the collapsedElement element, but when typing, text is written before that element.

Tried on the current night build (5649) in Chrome on GNU/Linux.

To reproduce:

  1. Move the cursor somewhere, without selecting anything
  2. Insert an inline style, like "Marker green"
  3. Type something

Change History (4)

comment:1 Changed 14 years ago by Tobiasz Cudnik

Keywords: Chrome Confirmed added

comment:2 Changed 14 years ago by Tobiasz Cudnik

Description: modified (diff)

comment:3 Changed 14 years ago by Tobiasz Cudnik

This is Chrome only misbehavior. After selecting an inline style, you should be typing inside of it.

comment:4 Changed 14 years ago by Frederico Caldeira Knabben

Resolution: duplicate
Status: newclosed

DUP of #1272

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