How to define custom DITAMapTreeDropHandler as a wrapper to default one ?

Post here questions and problems related to editing and publishing DITA content.
Vince
Posts: 64
Joined: Wed Dec 03, 2014 11:25 am

How to define custom DITAMapTreeDropHandler as a wrapper to default one ?

Post by Vince »

Hello,
I want to define a custom DITAMapTreeDropHandler to perform some URL operations before call the default one.
Is it available ? how to do this ?

To be more precise, my need is to benefit from AuthorNode schema aware selection of default map tree handler.

Thanks a lot
Regards,
Vince
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to define custom DITAMapTreeDropHandler as a wrapper to default one ?

Post by Radu »

Hi Vince,

So you already used our API "WSDITAMapEditorPage.addDropHandler(DITAMapTreeDropHandler)" to register your own tree drop handler, right?
And on the "consumeDropURLs" callback you can either decide to handle this event yourself or to return "false" and let Oxygen handle it.
I'm afraid you do not have the means to directly call the code Oxygen would perform if you return "false".
You have access to the "WSDITAMapEditorPage.getDocumentController()" to insert your own topic refs.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply