Plugin for text editor


I wanted to make a plugin that would add a button in the text editor’s toolbar. It would function just like the bold and italic buttons and wrap the text in some custom markup.

Is something like this possible to do currently in Discourse?

(Sam Saffron) #2

You would probably need to hack in an extensibility point for that.


Is there documentation that describes how you would do that?

(Benjamin Kampmann) #4

My replygif plugin does that. It adds a button to the Editor opening a new window and once something got selected sends that information back to the editor and changes its content. You can use that as an example plugin.