Hi,
To continue the discussion of html editors.
Recently I came across this editor:
https://github.com/xing/wysihtml5
It is much more lightweight than tinymce.
But seems to miss some things like pre, tables and text direction.
I would invite you all to test it, and see if might work better than tinymce.
About support for markdown entry.
I really would like people to be able to switch between markdown and html editing.
This because I have some customers who have very different editing needs in the same team, and I am sure some would prefer markdown and other the html editor.
Mixing that will give much confusion in the editor teams (which are located across the globe).
For a good support we need to have Markdown to HTML and HTML to Markdown conversion support.
Where just editing in one should keep that one format as well.
That means that either we need to make the HTML to Markdown conversion foolproof or need an extra intermediate form with both representations.
Both add considerable complexity.
An intermediate representation could be:
-record(editabletext, { type :: atom(), raw :: binary(), html :: binary() }).
Where the type can be, for example, 'markdown'.
We need to support this intermediate form in the same places where we support translations (that are {trans. …} tuples) right now.
Any ideas?
- Marc