ckeditor / github-writer

GitHub Writer - WYSIWYG Rich-Text Editor for GitHub, powered by CKEditor.
https://ckeditor.com/
Other
379 stars 61 forks source link

Can't undo the autoformat #445

Open mlewand opened 1 year ago

mlewand commented 1 year ago

📝 Provide detailed reproduction steps (if any)

  1. Open GH writer with empty content (e.g. issue comment).
  2. Type * followed with a space, so that it turns to the unordered list item.
  3. Press ctrl/cmd+z to undo.
  4. Type "d" character.

✔️ Expected result

The line should remain to be a paragraph with plain text.

❌ Actual result

It becomes an unordered list item again.

❓ Possible solution

The same is true for any autofomplete character.

📃 Other details


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

mlewand commented 1 year ago

This is not reproducible with Vanilla CKE5

Reinmar commented 1 year ago

Because GH Writer uses a custom autoformat implementation. We should migrate it to use the official one.