Skip to main content
dublove
Legend
Nov 27, 2026 9:00 AM UTC
Question

How to modify 'ClearStyleOverrides. jsx' to automatically select the corresponding paragraph style in the panel when text is selected?

Hi ​@grefel 

I saw your fantastic script.
But suddenly I can't post on it anymore.

https://github.com/grefel/clearOverrides/blob/master/ClearStyleOverrides.jsx

When I select some text or the cursor is in the line, I try to make the Paragraph Style in the panel automatically select the paragraph style corresponding to the selection.
I have tried several times but have not been successful.
Can it be modified?
I tried to modify it, but was unsuccessful.

Thanks.

 

    2 replies

    grefel
    Community Expert
    Community Expert
    Nov 27, 2026 10:29 AM UTC

    That's a good idea, and it's easy to implement. I'll take a look later to see how I can best handle it. 

    Translate
    dublove
    dubloveAuthor
    Legend
    Nov 27, 2026 10:58 AM UTC

    Hi ​@grefel 

    Character is also recommended to default to 'none'.
    If it is All, it means that both the paragraph and character styles have been manipulated simultaneously.

    Translate