-
-
Couldn't load subscription status.
- Fork 1.2k
Description
So it's not an issue but kindof a feature that I would like to have here.
Situation :
Let's I'm writing some text in rich editor and doing some text formatting. Different line of text has different formatting and I have Buttons on the UI to store the state of the formatting at that particular point where cursor is. If I manually places the cursor it I get a callback of setOnDecorationChangeListener which is great.
Now let's say I'm pressing backspace and during this i have shifted from text with one formatting to text with different formatting and i want my formatting UI buttons to be updated but this I can't do unless I get the Decorations for that point which I can only get from setOnDecorationChangeListener which results in UI inconsistency.
It would be nice if setOnDecorationChangeListener either has a custom manual call or it is called everytime decoration changes or user press backspace button.