Ckeditor5: Shift + Return not works for Heading 1-3 if Title plugin is installed and an space is and end of Heading

Created on 2 Sep 2020  ·  3Comments  ·  Source: ckeditor/ckeditor5

📝 Provide detailed reproduction steps (if any)

  1. Create Editor with Title plugin
  2. Open sample/index.html
  3. Enter H1 as Heading 1
  4. Type Space and then Shift+Return
    5, Type 'Hello'

✔️ Expected result

Hello is shown in Editor

❌ Actual result

Nothing is shown. No further text can be entered
see gif:
Heading Bug

📃 Other details

  • Browser: Firefox, Chrome
  • OS: …
  • CKEditor version: 22.0.0
  • Installed CKEditor plugins: Heading, Title, ...

Tested with Build created from Online Builder and only Add Title Plugin.
Attached both versions.
If the space is removed before Shift+Return it works

Maybe because the h1-h3 is handled special in
https://github.com/ckeditor/ckeditor5/blob/5fe1d6394bbaf4aaf7285c64401296cb58642018/packages/ckeditor5-heading/src/title.js#L94-L96

ckeditor5_22.0.0_withTitle.zip
ckeditor5_22.0.0.zip

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

heading typing bug

Most helpful comment

It sounds like this is related to the typing package. May be resolved by the work on migration to beforeInput.

All 3 comments

Hi, thanks for the report! I can confirm this issue. It's not a fresh regression, as I can reproduce it on version 20.0.0.

I first saw this with 16.0.0 and hopes itwas fixed after update to 22.0.0

But this wasnt so I report it

It sounds like this is related to the typing package. May be resolved by the work on migration to beforeInput.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hybridpicker picture hybridpicker  ·  3Comments

oleq picture oleq  ·  3Comments

MansoorJafari picture MansoorJafari  ·  3Comments

msamsel picture msamsel  ·  3Comments

Reinmar picture Reinmar  ·  3Comments