Skip to main content
March 4, 2012
Question

TLF prevent copy/paste of inline images

  • March 4, 2012
  • 1 reply
  • 3465 views

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 has been closed for replies.

1 reply

Adobe Employee
March 5, 2012

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.

March 5, 2012

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.

Adobe Employee
March 6, 2012

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