mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-23 00:06:59 +01:00
This adds a markdown editor that sends HTML to the server. It uses codemirror and some custom code to show a syntax highlighted textarea and some buttons to help editing (including a preview). Drafts get marked via an internal email header that causes the markdown editor to automatically start if a message composition is continued that was started using the markdown editor.
21 lines
972 B
Markdown
21 lines
972 B
Markdown
MarkdownEditor
|
|
==============
|
|
|
|
A markdown editor (duh!).
|
|
|
|
This plugins adds an alternative editor to compose emails with in Markdown syntax, which gets converted into HTML before sending.
|
|
|
|
It provides syntax highlighting and a toolbar (including a preview button) to help writing markdown. Drafts are saved as-is, and are automatically re-opened in this editor on re-editing. On sending the written markdown text gets converted into HTML.
|
|
|
|
(Roundcubemail automatically produces a multipart/alternative email from the given HTML, including a text/plain part consisting of re-converted HTML-to-text. Using our original text as text/plain part would be preferable but is left for a future version of this plugin.)
|
|
|
|
|
|
Installation
|
|
------------
|
|
|
|
Run `npm clean-install && npm run build` to produce the minified Javascript and CSS files required to run.
|
|
|
|
To enable this editor, add `'markdown_editor'` to the list of plugins in your `config.inc.php`.
|
|
|
|
There is no configuration.
|