Customization of link handling

Oxygen general issues.
Denis
Posts: 47
Joined: Thu Jun 19, 2014 3:55 pm

Customization of link handling

Post by Denis »

Hi,

I have a document with a link inside. I can jump to the element by clicking the left mouse button. Is it possible to change it? I want to press CTRL and the left mouse button.

Best regards,
Denis
Denis Zygann
KGU Consulting GmbH
http://www.kgu-consulting.com
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customization of link handling

Post by Radu »

Hi Denis,

Sorry but we do not have specific API for this. Possibly you could add a mouse listener WSAuthorEditorPageBase.addAuthorMouseListener(AuthorMouseListener) and consume the left click event in order to avoid the default behavior. On the same left click event, if the CTRL is pressed ro.sync.ecss.extensions.api.AuthorInputEvent.isCtrlPressed() you could try to see on what node the click was made using WSAuthorEditorPageBase.viewToModel(int, int) and possibly perform your logic, use our API to open a certain URL for example AuthorAccess.getWorkspaceAccess().open(URL url).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Denis
Posts: 47
Joined: Thu Jun 19, 2014 3:55 pm

Re: Customization of link handling

Post by Denis »

Hi Radu,

thanks this help me.

Best regards,
Denis
Denis Zygann
KGU Consulting GmbH
http://www.kgu-consulting.com
Post Reply