Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
3.99k stars 612 forks source link

Remove format button is not removing deleted/line through state #1260

Closed dngadelha closed 1 year ago

dngadelha commented 2 years ago

Clicking the Remove Format Button is not removing deleted/line through state.

Description Windows 10 Chrome 95.0.1020.30 (Official Build) (64-bit)

How to reproduce? https://alex-d.github.io/Trumbowyg/

  1. Type anything in the editor.
  2. Select a text part.
  3. Click the Deleted state button.
  4. Select the entire text (CTRL + A).
  5. Click the Remove format button.
lithxe commented 2 years ago

I believe this has been reported before and was Closed / Maid could not be fixed. I found that by adding this: $('#trumbowyg').trumbowyg({ semantic: { 'del': 's', } });

Changed the 'del' to 's' and then I had no more issues with the Undo bug. Might not be idea, but it does seem to work!

brvoisin commented 2 years ago

I have the same issue. When I select a text "deleted" and I click on the Delete button or the Remove format button, nothing changes.

  1. Go to https://alex-d.github.io/Trumbowyg/
  2. Replace all the text by a random word
  3. Select the word
  4. Click the Deleted button
  5. Select the word again
  6. Click the Deleted button (no effect)
  7. Select the word again
  8. Click the Remove format button (no effect)
Alex-D commented 1 year ago

It's a known issue, a browser-level bug, and cannot be fixed easily.

Wait for Trumbowyg 3 :)