Plugin or theme component for post editor modification?

Yes, theme components can be installed by administrators on a hosted site. Generic theme documentation can be found here.

Here’s an example of one theme component which adds a toolbar button to the composer:

https://github.com/discourse/DiscoTOC/blob/master/common/header.html#L373-L393