What editor does discourse use?

(Bodyfarmer) #1

I’m wondering what editor does discourse use for creating new topic?

(Mittineague) #2

Hi bodyfarmer,

I get the feeling you’re thinking Discourse uses some kind of “drop-in” editor.

But maybe you’re looking for “Composer”? eg.

(Bodyfarmer) #3

Thanks so much Mittineague,
Too bad it’s not a gem I can integrate to other rails app. This editor is awesome!

(Mittineague) #4

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?

(Jens Maier) #5

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: