Page 1 of 1
Customization of link handling
Posted: Tue Sep 29, 2015 10:05 am
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
Re: Customization of link handling
Posted: Tue Sep 29, 2015 2:39 pm
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
Re: Customization of link handling
Posted: Wed Sep 30, 2015 10:22 am
by Denis
Hi Radu,
thanks this help me.
Best regards,
Denis