Skip to main content
Mar 4, 2012 9:43 PM UTC
Question

TLF prevent copy/paste of inline images

I have one TextArea on which is supposed to support inline images and TLF automaticlly provides options for the user to copy/paste part of text with image. I have some other text fields which should not support images(for example TextInput for search). User can copy text with image from TextArea and paste it inside TextInput. Is there any easy way to prevent this?

Best Regards, Aleksey

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Adobe Employee
Mar 5, 2012 2:12 AM UTC

Please have a look at http://blogs.adobe.com/tlf/2010/11/custom-clipboard-formats.html. A sample is attached at the end of the article.

Translate
Mar 5, 2012 11:37 AM UTC

Thanks you. This is definetly step in right direction. However as I understand clipboard format is applied to all text fields in applications. I want to be able to copy/paste images in one single text field and not being able to paste images in other text fields.

Translate
Adobe Employee
Mar 6, 2012 1:53 AM UTC

I think you can create a filter by detecting the current focused container.

Translate