Skip to main content
Participating Frequently
January 22, 2018
Answered

Drag image from CEP extension and Drop into text frame not working.

  • January 22, 2018
  • 4 replies
  • 2008 views

Hi everyone,

I am trying to drag drop image from CEP extension. For data transfer from CEP to cpp plugin I am using kTEXTExternalFlavor, with this approach I am able to get the image info and place it into Graphic frame in my custom CustomDragDropTargetFlavorHelper class.

But when I drag the image into text frame, ProcessDragDropCommand method is not executed, even if i return DragDrop::kDropWillCopy in CouldAcceptTypes method. Please suggest me , Is there anything else needs to be done?

Thanks ,

Yogita.

This topic has been closed for replies.
Correct answer Alo Lohrii

This is a known bug at the moment and is being investigated internally for a possible fix

4 replies

Brainiac
May 3, 2018

When I wrote a drag from browser to InDesign, I had especially hard times with https URLs when the dragged image was wrapped into an <a href>. The culprit was something with Netscape in its name, e.g. kSysFileDataExchHandlerNetscapeHelperBoss is still around. Back then I used a bogus http link instead that I translated on the fly from the drop target (helper) side to perform the download on my own (curl). That code was last touched with CS5, though.

Alo Lohrii
Community Manager
Alo LohriiCommunity ManagerCorrect answer
Community Manager
May 1, 2018

This is a known bug at the moment and is being investigated internally for a possible fix

Matthias Paul Seidel
New Participant
July 15, 2020

Hi Lohrii!

 

I run into the same problem: I have a text frame in the background and an image frame in front. When I drag an image from a browser, the text frame is always used as the target. The function 
ProcessDragDropCommand for the GraphicFrame is no longer executed. Without text frame in the background it works. Is ther any way ro work around this problem?

 

Thanks in advance,

 

   Paul 🙂

Participating Frequently
April 18, 2018

Hi everyone,

Could you please help me on this ?

Thanks,

Yogita

Community Expert
January 22, 2018

Hi Yogita,

you posted in the InDesign user forum.
I think, your question is a InDesign SDK question.

So a moderator would best move this thread over to:

InDesign SDK

There is also a forum about:

Extensions / Add-ons Development

But I think this is more about HTML panels and JavaScript that control InDesign by means of ExtendScript.

Regards,
Uwe