Rate this page:
Hosts are the primary method for Connect apps to interact with the page.
Gets the selected text on the page.
Name | Type | Description |
---|---|---|
callback | function | Callback method to be executed with the selected text. |
1 2 3
AP.host.getSelectedText(function (selection) {
console.log(selection);
});
Rate this page: