Opened 10 years ago

Last modified 7 years ago

#4971 confirmed Bug

Unable to insert <br> under <li> when shiftEnterMode != ENTER_BR

Reported by: pomu0325 Owned by:
Priority: Normal Milestone:
Component: UI : Enter Key Version: 3.0
Keywords: HasPatch Cc: pomu@…

Description (last modified by Jakub Ś)

By default, shiftEnterMode is set to ENTER_BR, and Shift+Enter will insert <br> under <li>.

To Reproduce

  • Add following settings to config.js.
    config.enterMode = CKEDITOR.ENTER_BR;
    config.shiftEnterMode = CKEDITOR.ENTER_P;
    
  • Open sample page.
  • Click "Numbered List" or "Bulleted List" button from toolbar.
  • Type some text.
  • Move caret at the middle of text.
  • Press Enter from keyboard.
    • expect: <br> is inserted
    • actual: next <li> is created

Attachments (1)

4791.patch (740 bytes) - added by pomu0325 10 years ago.
workaround patch. force default behavior for Shift+Enter inside <li>

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by pomu0325

Attachment: 4791.patch added

workaround patch. force default behavior for Shift+Enter inside <li>

comment:1 Changed 10 years ago by Frederico Caldeira Knabben

Keywords: HasPatch added
Milestone: CKEditor 3.x

That's one of the reasons why changes enterMode and shiftEnterMode are not recommended.

comment:2 Changed 9 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.x

Milestone CKEditor 3.x deleted

comment:3 Changed 7 years ago by Jakub Ś

Description: modified (diff)

comment:4 Changed 7 years ago by Jakub Ś

Description: modified (diff)
Status: newconfirmed
Version: 3.13.0

Reproducible in all browsers from CKEditor 3.0.

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