Adding a poll button to the bottom of the composer

I couldnt help myself and looked down the rabit hole a bit. haha and now are 2 hours gone already.


you need to add the handlebars file like this to display the button


and then you need some action similar to the one in the poll plugin:

we can feed the poll builder modal a “fake” toolbar event, but the issue is that you also need to replicate the logic in the editor component

the part with _getSelected and _addText. I would be very interested to know if there is some api to add text programmatically to the editor textarea from “the outside”.