I tried the below code but it shows read only error.
myMenuItem.associatedMenuAction.enabled = false;
Thanks & Regards,
If you searched this before asking: did How to disable menu using JS? not work?
I tried the above code but that is not working. I want to prevent user from editing character styles. I want to disable the below window using script. And I want to prevent user from creating new styles.
Retrieving data ...