Proposal: Modify Editor toolbar options
I have a few suggestions to change the features in the WYSIWYG editor.
- Remove "Color" — I know, some folks love these. But it creates accessibility issues to be able to override the default fonts & colors, and it creates the absolute worst HTML markup I've observed in posts made in Agorakit — lots of spans and deprecated 'font' tags. I believe 'font' tags and related style properties should all get blocked in Purifier as well.
- Remove "Remove Font Style" because it's irrelevant after the above.
- Remove "H1" option — The discussion or site title should be the only things at H1 on a page.
- Remove "H5" and "H6" options — I think they should be allowed through Purifier, but there's rarely a use for them and I think folks are more likely to abuse them as font size.
- Add "Italics" — I think an `em` is important to have access to.
- Add "Strikethrough" — Great for indicating edits (and humor).
- Add "indent / outdent" — These are important for lists! I even wanted to use it for #2 above.
- Add "Video" (after Picture) — I like the idea of making them explicit, but we should validate if this conflicts with oembed or Purifier first.
I think there are also good cases for adding Tables and Superscript, but I might consider them later, perhaps only for the first post in a discussion. There's several things that I'd probably want in a long-form writing (like "full screen" and "undo"), but probably not a simple comment, so I'd rather set that aside for now since this is already a pretty big change.
reference: https://summernote.org/examples/
I totally agree. Also we need to upgrade to latest summer note, but that's another issue.
I was looking as my yearly rabbit hole if there are better solutions for WYSIWYG, but I'm not too convinced.
Same. I've used TinyMCE, CKEditor, and Quill. They're all a mess for different reasons. I have quibbles with the current editor but I'd rather try working through them for now rather than spend energy rethinking the entire solution. It looks sufficiently customizable.
I ran into an issue with indent/outdent: https://github.com/summernote/summernote/issues/1773#issuecomment-3378681404
I'd very much like to add a 'spoiler' tag ("click to reveal") at some point. https://github.com/summernote/summernote/issues/3297
I've found it to be not only for true spoilers, but rather a way of respectfully "gating" content that could upsetting to some folks. It's occured to me that a moderation tool to "spoiler" someone else's comment (rather than edit or delete it) would be useful.