Opened 8 years ago

Last modified 8 years ago

#16905 confirmed Bug

Editor enterMode: ENTER_BR doesn't strip leading whitespace immediately

Reported by: Steven Bone Owned by:
Priority: Normal Milestone:
Component: General Version: 4.1.1
Keywords: Webkit Cc:

Description

Steps to reproduce

  1. set editor enterMode to ENTER_BR
  2. in editor, enter text - 'Send to 123 Main St'
  3. place cursor immediately after 'to', before space
  4. hit Enter key
  5. on new line, hit Delete or Arrow Right
  6. notice cursor/action move two spaces to the right

(space is trimmed on this keypress, and the next character is acted upon)

Expected result

leading whitespace should be trimmed on initial Enter keypress (like behavior when performing same action with ENTER_DIV and ENTER_P) Expected, demo'd with ENTER_DIV: https://cloud.githubusercontent.com/assets/1396405/23916617/2a8f990c-08c3-11e7-884f-ccd5f70f17ec.gif

Actual result

leading whitespace is trimmed on Delete, as well as the '1' character. https://cloud.githubusercontent.com/assets/1396405/23916604/2650228a-08c3-11e7-9e91-b776af59f763.gif

Other details (browser, OS, CKEditor version, installed plugins)

  • Chrome 56.0.2924.87
  • OSX 10.12.3
  • CKE 4.5.2 and 4.7.1

Change History (2)

comment:1 Changed 8 years ago by Jakub Ś

Keywords: Webkit added; enter_br enterMode removed
Status: newconfirmed
Version: 4.7.1 (GitHub - master)4.1.1

Problem can be reproduced from CKEditor 4.1.1 on Chrome in both Windows and Mac.

comment:2 Changed 8 years ago by Jakub Ś

Similar can be applied to Fiefox and IE. Please see: #16929 and #16932

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