Docs menu
initialize
Start the SDK.
Usage
const gnr = new window.GNR();
gnr.initialize({
appId: "YOUR_APP_ID",
embedToken: "SSO_TOKEN",
});Parameters
| Name | Description | Type | Required |
|---|---|---|---|
appId | Your App ID. | String | Yes |
embedToken | The SSO token for this user. See Single sign-on. | String | Yes |
whiteLabelLogo | https address of your logo, shown in place of ours. | String | No |
downloadHidden | true hides the Download button. Default false. | Boolean | No |
publishHidden | true hides the Publish button. Default false. | Boolean | No |
combinePublishAndDownloadVisible | true shows one “Download & publish” button instead of two. Default false. | Boolean | No |
closeOnPublish | false keeps the editor open after Publish, for you to close. Default true. | Boolean | No |