I want to put links to my plugin documentation, how could I make the user open the link into the browser when click a text or div, etc. ?
Here’s an example of what I want the user to click:
Thanks!
I want to put links to my plugin documentation, how could I make the user open the link into the browser when click a text or div, etc. ?
Here’s an example of what I want the user to click:
Thanks!
const shell=require("uxp").shell;
shell.openExternal("https://myLink.com");
Or, you can also use the sp-link element.
Make sure to have your domain whitelisted in the manifest, like:
"requiredPermissions": {
"launchProcess": {
"schemes": [
"https"
]
},
"network": {
"domains": [
"https://www.compositenation.com"
]
}
},
Ii wasn’t working until I put the launchProcess key inside the manifest. Thank you! Even simple works now!
"launchProcess": {
"schemes": [
"https"
]
},