Page 1 of 1

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

Posted: Wed Aug 17, 2022 6:19 pm
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

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

Posted: Thu Aug 18, 2022 7:24 am
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