Opened 9 days ago

#16905 new Bug

Editor enterMode: ENTER_BR doesn't strip leading whitespace immediately

Reported by: sbone Owned by:
Priority: Normal Milestone:
Component: General Version: 4.7.1 (GitHub - master)
Keywords: enter_br, enterMode Cc:


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:

Actual result

leading whitespace is trimmed on Delete, as well as the '1' character.

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 (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2016 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy