I have a requirement where the styles plugin should be available only when the author select heading 1 to heading 6 in the paraformat plugin
So the Style plugin has to be available only when the author selects heading1 to heading 6
I'm not aware of any solution OOB to achieve this use case but to write your own custom 'paraformat' plugin and register it in specific editor modes.
References for writing custom plugin -
Experiencing Adobe Experience Manager - Day CQ: In the blog "Experiencing Adobe Experience Manger - ...
AEM | RTE – Custom Styles Plugin – Touch UI – Need is the mother of invention …