Page MenuHomewrite.as

WYSIWYG Editor
Open, Medium-HighPublic

Description

Overview

Add a more accessible editor that makes formatting easy for everyday users.

Background

Especially for Teams, we can't expect users to know or even want to learn Markdown. We should give instance admins the option to offer their users an editor that's easy-to-use, even if it comes at the expense of visual simplicity.

Implementation

ProseMirror seems perfectly suited for this, presenting a WYSIWYG interface and creating Markdown behind the scenes.

  • Create a new template (e.g. templates/wysiwyg.tmpl) based on templates/pad.tmpl
  • Set editor = wysiwyg in config.ini (if named this way)
  • In templates/wysiwyg.tmpl, use ProseMirror instead of the <textarea> for the writing interface.
  • When publishing, pass along the title, plus the Markdown body
  • When editing a post, pass in the title and Markdown body into the ProseMirror editor for rendering

Event Timeline

matt triaged this task as Medium-High priority.Feb 25 2020, 1:06 PM
matt created this task.
robjloranger added a subscriber: robjloranger.

Looking into this today