DocuVieware Reference Guide
RegisterOnTextSelected
Reference Guides > JavaScript API > Events > RegisterOnTextSelected
 RegisterOnTextSelected

This function allows you trigger a function of your own when text has been selected on the displayed document.

RegisterOnTextSelected: function (docuViewareID, callback)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance.
callback
The function you want to execute on event.

Return Value

1 if error.