Loading
Network error

Proposal: Modify Editor toolbar options

Started by linc in Agorakit : Users & developers October 7, 2025 6:26 PM

I have a few suggestions to change the features in the WYSIWYG editor.

  1. 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.
  2. Remove "Remove Font Style" because it's irrelevant after the above.
  3. Remove "H1" option — The discussion or site title should be the only things at H1 on a page.
  4. 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.
  5. Add "Italics" — I think an `em` is important to have access to.
  6. Add "Strikethrough" — Great for indicating edits (and humor).
  7. Add "indent / outdent" — These are important for lists! I even wanted to use it for #2 above.
  8. 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/

October 7, 2025 8:08 PM

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.

October 7, 2025 9:56 PM

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.

October 7, 2025 11:04 PM
October 9, 2025 4:44 PM

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.

You've read everything in this discussion