DEV Community

Discussion on: Feature update: Markdown toolbar - I give it ⭐⭐⭐ but it is a good start!

Collapse
 
siddharthshyniben profile image
Siddharth

I've encountered many of these issues making my own WYSIWYG, and some of them are really hard to fix! Especially the undo queue, AFAIK there's no native solution to fix it.

Some more issues:

  • The editor guide opens in the same page, so you lose unsaved content (target="docs")
  • cmdb for bold opens up bookmarks on Firefox (this can be solved by preventDefault I think)
  • cmdi for italic opens up page info on Firefox

Feature requests:

  • Selecting text and pressing "/'/*/_/< etc. should wrap the text in the right character
  • Support adding more elements (mark, center, abbr, etc.)

The chrome extension would be awesome, you could probably mention it to the DEV team so they can add the features from it so the native editor is finally right.

Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

Nice spots!

Yes preventDefault will fix all of the keyboard shortcut problems and won't be an accessibility issue provided it doesn't stop you tabbing out of the editor box (if that is why it hasn't been implemented) as it is expected that an editor will interrupt most keyboard controls.

Oh and <center> is deprecated just as an FYI so we shouldn't really be using it (even if I do use it loads on DEV lol!)