Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
One possibility would be to rasterize the text after you create it.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now