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?
2
Answers
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):
To achieve this functionality, you’ll need to write some JavaScript code that interacts with the selected text in the document and applies the desired CSS property.