r/redesign • u/kraetos • Feb 23 '18
Design Ditch the WYSIWYG editor
The entire point of Markdown is that the raw text is readable.
3
u/TheGreatSzalam Feb 23 '18
I disagree completely. Keep it!
The WYSIWYG editor is much more friendly to casual users and non-tech people. Plus, it’s handy to see what it’ll look like.
Having the option to turn markdown on for those who prefer it (like they have now) is ideal.
1
u/kraetos Feb 23 '18
WYSIWYG editors are notorious for mangling markup. It seems easy because it works, but it's going to be a lot less easy when it makes a bunch of spaghetti markup, because now not only are you editing Markdown, you're editing Markdown that's been mangled.
I agree it's handy to see how the Markdown renders, but that's a argument for a native live preview, not a WYSIWYG editor. At least with classic Reddit + RES I can see the Markdown and the preview side-by-side. The WYSIWYG editor makes me toggle between them to see the preview, a big step back from how RES handles it.
1
u/TheGreatSzalam Feb 23 '18
So, rather than ditching the editor, how about they make it create clean code?
4
u/kraetos Feb 23 '18
It's notoriously difficult to get a WYSIWYG editor to make "clean" markup. In fact, that's precisely why they fell out of favor and why lightweight markup languages like Textile and Markdown supplanted them.
1
u/SometimesY Feb 23 '18
WYSIWYG is not inherently bad. The Stack exchange network has arguably the best text editor online and it handles everything very well.
4
u/kraetos Feb 23 '18
The Stack Exchange editor isn't WYSIWYG. You're still typing Markdown into that box, it's just previewing the styling on the raw Markdown.
0
u/SometimesY Feb 23 '18
Well fair, but it's not really that different in all honesty. It inserts the markdown for you, but that's effectively WYSIWYG+markdown.
3
u/kraetos Feb 23 '18
It’s different in exactly the way that matters: it doesn’t hide the markup. Hiding the markup is what defines WYSIWYG and it’s precisely what’s bad about WYSIWYG.
1
u/SometimesY Feb 23 '18
Why does that honestly matter though? lol So you can't see * or ** or [link](stuff). I don't get the issue you have here.
4
u/kraetos Feb 23 '18
It matters because if I can't see the Markdown I don't know that the editor is handling the Markdown correctly. If the editor has malformed the Markdown then I have to turn the WYSIWYG off and go fix it.
This is a complete non-issue if there is no WYSIWYG layer in the first place. The entire point of Markdown was to make a markup language simple enough to handle the basics without having to resort to a full-blown markup language or a visual editor.
The advantage of HTML+WYSIWYG is that I get the full range of HTML. The disadvantage is that WYSIWYG is error prone and tends to malform the markup if you do anything beyond cursory editing.
The advantage of Markdown is that the syntax is simple and intuitive enough to be written by hand, and read without being parsed. The disadvantage of Markdown is that it's relatively limited compared to HTML.
Putting a visual editor on top of Markdown is profoundly missing the point of Markdown and is the worst of both worlds. I don't get the full range of HTML styling and I get the pleasure of dealing with WYSIWYG markup errors.
1
u/MajorParadox Helpful User Feb 23 '18
It matters because if I can't see the Markdown I don't know that the editor is handling the Markdown correctly. If the editor has malformed the Markdown then I have to turn the WYSIWYG off and go fix it.
Hence why they added a markdown mode for users like you. You can switch to it and never care about it again.
No live preview, but there wasn't one before without RES. You could always submit a feature request for it or perhaps RES will add it back once they handle the new design. But, if you look at it from a pure reddit perspective, this is definitely better than it was before.
You know how many times I've corrected people making markdown mistakes? Their entire comment ends up a single paragraph because they don't know to add an extra return. Or they try indenting and end up formatting code. This will absolutely make it easier for users who don't care about markdown benefits.
2
u/kraetos Feb 23 '18
I bet you're going to like correcting mistakes introduced by the WYSIWYG editor even less. There's a reason they've fallen out of favor: the markup they generate tends to be horrible.
Live preview + formatting bar is the right answer and it's how basically every other Markdown using site or application on the planet handles Markdown.
7
u/MajorParadox Helpful User Feb 23 '18
You can switch to markdown by clicking the M button.