Open pjmonks opened 3 years ago
This looks like a nice Markdown editor: https://github.com/inacho/bootstrap-markdown-editor
There's a third option, of course, which is 'plain text'. Do we need to treat that differently to Markdown? Maybe not
As for 'default' options - that may be something that we could have as a per-user, or per-instance option, but I think different users will have different preferences for different projects.
I can think of two possibilities for improving the editing experience further:
For point 2, it is also possible we could write and extend our own Markdown editor, but if there is one already available in the ecosystem I would suggest looking at those first.
This issue is for a discussion on the usability of the current HTML and Markdown editors. Despite working well, there are a few issues which I think could be improved
Multiple source/preview views
If in Markdown mode, this is the source/preview view:
If in HTML mode, this is the normal preview (and editable) view:
And this is the source HTML view:
Effectively there are multiple ways of seeing the raw source text of the content and then multiple previews of that content, which introduces lack of consistency.
Lack of Markdown controls
The HTML editor appears to have many fine grained controls to improve the editing experience (bold, italic, lists, tables etc), whereas the Markdown editor has only a preview and "insert link" control. Markdown lends itself to being easy to type and format, however for general user experience it might be useful to include common Markdown formatting tool buttons (much like the GitHub Markdown editor).
No context for which format to use
To accommodate both HTML and Markdown, the
mdm-content-editor
component is a wrapper over both controls, with a button toggle to manually switch between them. This introduces two problems:Also, is it possible for Mauro to have a "default" format chosen to avoid these kinds of conflicts?
For discussion