I'm just looking to add a few buttons to the TinyMCE editor via a plugin. The buttons will have the exact same functionality as the bold/italic/strikethrough buttons, but will instead be for the HTML tags: <mark>
and <ins>
.
Can I re-use the code for these existing buttons and somehow extend it to change the html tag that is inserted?
I dug through the GitHub repo and could not find where this functionality is written. I'm hoping there is a simple API I can extend.
I found some command identifiers that look promising, like mceInsertContent
that can insert something simple like an <hr />
, but nothing for inserting tags around the selected text.