Function: createWebsiteIntegration()
ts
function createWebsiteIntegration(options?: WebsiteIntegrationOptions): IWebsiteIntegration;Creates the integration object. The script calls it once when it loads and assigns the result to window.tronDesigner.
Parameters
| Parameter | Type | Description |
|---|---|---|
options | WebsiteIntegrationOptions | Which DOM event opens the editor from registered elements; defaults to 'click'. |
Returns
The new integration object.
Remarks
You don't need to call this yourself — use window.tronDesigner. The instance reads its configuration from the <script> tag that is executing (document.currentScript), so an instance created later can't initialize.