• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to disble "New Character Style.." menu using javascript?

Community Beginner ,
Mar 17, 2017 Mar 17, 2017

Copy link to clipboard

Copied

Hi All,

I want to disable "New Character Style..." menu.Is it possible to do with javascript?

I tried the below code but it shows read only error.

myMenuItem.associatedMenuAction.enabled = false;

Thanks & Regards,

Senthilvel S

TOPICS
Scripting

Views

278

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 17, 2017 Mar 17, 2017

Copy link to clipboard

Copied

If you searched this before asking: did How to disable menu using JS? not work?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 17, 2017 Mar 17, 2017

Copy link to clipboard

Copied

LATEST

Hi Jongware,

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.

Charater Style Options.png

Thanks & Regards,

Senthilvel S

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines