Opened 6 years ago

Last modified 6 years ago

#9519 confirmed Bug

Unable to exit from pre block in some cases

Reported by: Karen Ananiev Owned by:
Priority: Normal Milestone:
Component: General Version: 3.6.5
Keywords: Cc:

Description (last modified by Jakub Ś)

  • clear all contents
  • change paragraph format to Preformatted
  • type some text and press Shift+Enter to create new line
  • switch to the Source (notice that pre block has extra line break) and go back to the wysiwyg mode. Without switching to source mode pressing SHIFT+ENTER and ENTER works as expected.
  • put cursor to the empty second line of pre
  • press Enter to exit from pre block

Outcome: We are still into pre block and you have to press enter one more time to get out of it.
Expected: Exit from pre block and create the new paragraph.

The problem is that enterkey plugin appends bogus br element which is converted to the invisible line break.

Change History (3)

comment:1 Changed 6 years ago by Jakub Ś

Description: modified (diff)
Summary: [Webkit] Unable to exit from pre block in some casesUnable to exit from pre block in some cases

comment:2 Changed 6 years ago by Jakub Ś

Description: modified (diff)

comment:3 Changed 6 years ago by Jakub Ś

Status: newconfirmed
Version: 3.6.5

This behaviour has been changing across versions.

  • Exiting pre block has first been possible in CKEditor 3.6.
  • Using the above TC it was not possible at all to get out of pre block from CKE 3.6 to CKE 3.6.4
  • This was improved in CKEditor 3.6.5 and now it is possible to exit pre block on second enter.
  • Unfortunately I was not able to find revision for the fix. Seems that it is not possible to exit pre block in any revision but it is possible in release code. Using above TC of course.
  • Problem can be reproduced in all browsers.

Please note that this problem does not occur in CKEditor 4.x - http://nightly-v4.ckeditor.com/

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