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

how do i make text non editable in text frame?

Community Beginner ,
May 26, 2015 May 26, 2015

I am attempting to develop a plugins, text content will be pushed to the text frame using the plug-ins. What i would like to know is, after pushing the content to text frame, would it be possible to make the content, non-editable by the user? I don't want to use the lock feature, this would lock the entire frame, not allowing user to move, resize, apply attributes etc.

I just want to make the content non-editable, but allowing user to move the frame, resize frame, apply fonts, different point size, colour etc.

Is this is possible, how should i approach this.

Any advise/direction will be much appreciated. Thanks in advance

JaisanM

TOPICS
SDK
1.6K
Translate
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
Adobe
Advocate ,
May 27, 2015 May 27, 2015

One possibility would be to rasterize the text after you create it.

Translate
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 ,
May 27, 2015 May 27, 2015

Thanks Leo, if i rasterise the text, users won't be able to change the font, size etc...

And also, if there are any further changes needs to be done for the text content, i will be using my plugins to push the revised text content into the text frame.

Translate
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
Participant ,
May 28, 2015 May 28, 2015
LATEST

If you need a standard text frame in which the user can change the font, color, etc, then I don't think you can really forbid content changes. However, you can always listen for the kAIArtSelectionChangedNotifier; when received, check the text object to see whether the user has changed it contentwise, and if so, just change it back.

Translate
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