I’m wondering what editor does discourse use for creating new topic?
I get the feeling you’re thinking Discourse uses some kind of “drop-in” editor.
But maybe you’re looking for “Composer”? eg.
Thanks so much Mittineague,
Too bad it’s not a gem I can integrate to other rails app. This editor is awesome!
Discourse is open-source. You might be able to pick out the good parts and and make a stand-alone GEM based on it.
@eviltrout , doable?
I wouldn’t bother with extracting the editor right now. The editor itself is quite basic anyways, the magic happens in the markdown parser and how the same parser code is run both in the UI to provide the real-time preview as well as on the server to cook and sanitize posts.
The thing is, the current markdown parser is buggy as heck and it’s eventually going to get replaced:https://meta.discourse.org/t/markdown-table-support/13546/46?u=elberet&source_topic_id=27725