We want to implement a Markdown editor for Umbraco, as our users find this more intuitive - we took a look at this project, however the problem is that not only does it leave HTML in (unescaped) - it also has no content or media picker helpers for adding links, etc.
Has anyone done anything similar, and can anyone confirm what part of the Umbraco source I'd need to look at to amend how TinyMCE content is published?
I would enthusiastically applaud any attempts at improved Markdown support in Umbraco.
TinyMCE is a horrible mess of browser-sniffing javascript, so I can't see that you can ever build a succesful Markdown editor on top of that. Lee Kelleher's Markdown Editor package is a really good start, but as you rightly note, it needs content picker support in order to be truly useful. Wouldn't it be easier to add them, rather than trying to disable the WYSIWYG part of TinyMCE -- which would basically just leave you with a text area?
I'm not sure what you mean about the Markdown editorleaving unescaped HTML in. That is a fundamental part of the "spec":
"For any markup that is not covered by Markdown’s syntax, you simply use HTML itself. There’s no need to preface it or delimit it to indicate that you’re switching from Markdown to HTML; you just use the tags."
Customizing TinyMCE output
Hi there,
We want to implement a Markdown editor for Umbraco, as our users find this more intuitive - we took a look at this project, however the problem is that not only does it leave HTML in (unescaped) - it also has no content or media picker helpers for adding links, etc.
Therefore I think a solution would be to:
I would enthusiastically applaud any attempts at improved Markdown support in Umbraco.
TinyMCE is a horrible mess of browser-sniffing javascript, so I can't see that you can ever build a succesful Markdown editor on top of that. Lee Kelleher's Markdown Editor package is a really good start, but as you rightly note, it needs content picker support in order to be truly useful. Wouldn't it be easier to add them, rather than trying to disable the WYSIWYG part of TinyMCE -- which would basically just leave you with a text area?
I'm not sure what you mean about the Markdown editorleaving unescaped HTML in. That is a fundamental part of the "spec":
"For any markup that is not covered by Markdown’s syntax, you simply use HTML itself. There’s no need to preface it or delimit it to indicate that you’re switching from Markdown to HTML; you just use the tags."
http://daringfireball.net/projects/markdown/syntax#html
is working on a reply...