I have a button that does custom formatting and I want to sync it with the selected text similar to the standard buttons.
i.e. if the text is bold then the bold button is shown as depressed.
Is there an easy way to hook into the internal functionality to evaluate the selected text and sync my button accordingly?