ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Keep format after the entire formatted text was deleted

Open minhtranite opened this issue 6 years ago • 6 comments

Is this a bug report or feature request? (choose one)

🆕 Feature request

💻 Version of CKEditor

It is a custom build from latest version.

📋 Steps to reproduce

  1. Select some words and change format (bold, color...).
  2. Delete there words.

✅ Expected result

Keep wrap element and format until content empty and press delete one more time. If continue typing new content will use current format.

❎ Actual result

Element and all format are gone.

📃 Other details that might be useful

This feature work almost like gmail editor.

minhtranite avatar Aug 02 '19 10:08 minhtranite

In other words, you'd like the format to be preserved even when the entire text that had it was just deleted?

I've just checked that Gmail does it (because Chrome does it natively and Gmail uses nearly native contentEditable). Google Docs does it too. CKEditor 4, TinyMCE, Pages don't do it – they behave like CKEditor 5.

I'm curious about what Word does.

This is a possible change in the behaviour. Perhaps it's even fairly easy to do without changing CKEditor 5's source code. But we'd need to thoroughly analyse this (it's implications) before shipping such a change.

Reinmar avatar Aug 22 '19 06:08 Reinmar

Hi, @Reinmar Can you plz specify me the easy solution to do this without change the CKEditor 5's source code? Thank you.

costibotez avatar Dec 01 '20 14:12 costibotez

Hi, @Reinmar I've checked this bug on TinyMCE and it's working quite well. It would be really helpful for clients if we solve this bug. You mentioned that this is possible change. Can you please point us exactly what you mean the easy approach?

crypto-dump avatar Dec 04 '20 01:12 crypto-dump

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot avatar Oct 05 '23 05:10 CKEditorBot

Seems like maybe instead of no activity in the past year you've actually made improvements. We recently upgraded to version 39 and this behavior is supported (on selecting and replacing text, the formatting is maintained). 🥳

joannazinsli avatar Oct 10 '23 19:10 joannazinsli

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot avatar Oct 09 '24 23:10 CKEditorBot

We've closed your issue due to inactivity. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).

CKEditorBot avatar Nov 09 '24 23:11 CKEditorBot