Would it be possible to provide indexRange for a given paragraph. This is the use case:
I have a paragraph with multiple styled text objects, each has its own. I need to change one style parameter, for example size.
I am using the styles.mapStyles method. then I apply styles to the whole text area at a given range.
I need a way to know where the given paragraph starts or end in reference to the text area. I tried to figure it out but I could not reach a solution.
Would it be possible to provide indexRange for a given paragraph. This is the use case:
I have a paragraph with multiple styled text objects, each has its own. I need to change one style parameter, for example size.
I am using the styles.mapStyles method. then I apply styles to the whole text area at a given range.
I need a way to know where the given paragraph starts or end in reference to the text area. I tried to figure it out but I could not reach a solution.