The docs are fairly clear on how to add a custom toolbar button but what I need to be able to do is to set/unset a CSS property of the currently selected text using the button.
Specifically I need to be able to set/unset the CSS property "writing-mode" to/from "vertical-rl" for the currently selected text when the button is selected.
How can I do this?
Thank you for your reply it lead me to what seems to be working for me. Which is this (I still have more testing to do):
This adds a button called "vrt-btn" and the styles that I registered as "vrt" are applied to any selected text when the button is pressed.
The button is placed in the tool bar by add "vrt_btn" at am appropriate place in tinymce.init({ selector: ... plugins: ... toolbar: 'undo redo... vrt_tbn ..." ...