nhn / tui.editor

🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
http://ui.toast.com/tui-editor
MIT License
17.11k stars 1.73k forks source link

Toggling different formatting buttons - 'Task' #2523

Open livevsonline opened 2 years ago

livevsonline commented 2 years ago

Describe the bug

When toggling between let's say 'Task' option, it will create an Asterix at the beginning which will format it as a list when I toggle 'Task' back to normal formatting?

To Reproduce

Steps to reproduce the behavior:

  1. Go to: https://ui.toast.com/tui-editor
  2. Enter some text
  3. Format it as 'Task'
  4. Try to press 'Task' again to unformat it, then it leaves an Asterix behind which is read as a list

Expected behavior

I expected the Editor to unformat the text like a toggle between formatting as 'Task' and no formatting at all, so it would either format the text as 'Task' or nothing, but instead, it formats it as a list

Desktop

In general the whole deselect/unformat stuff works really bad and has to be looked into to (My team asked for an unformat button, but it should already be possible by toggling the format you want on/off)

jwlee1108 commented 2 years ago

@livevsonline Thank you for the issue. I can understand your inconvenience. I'll check it.