Detect the style enabled

Author: rbcodesCreated Aug 29, 2017Updated Nov 21, 2024

I want to let the user know if Bold or Italic or any other style is currently active. Switching the states of style on button press can achieved. But when the user erases content, the preceding style is activated by default and there is no way to detect it.

Ex : Bold Text Normal text. Now if I delete the Normal Text, the old style that is bold will be activated. Bold Tex There is no way I can detect the current style and let the user know that bold is now active again.

Source: wasabeef/richeditor-android