I like the text editor of Discourse. So how can I bring it to my blog?
Not easy, it is a very integrated component. On the upside there are dozens of similar self-contained editor you could look at integrating if you search GitHub.
trix by basecamp might be worth a look.