Skip to content

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 ​

ParameterTypeDescription
optionsWebsiteIntegrationOptionsWhich DOM event opens the editor from registered elements; defaults to 'click'.

Returns ​

IWebsiteIntegration

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.

Czech Republic – The Country for the FutureFunded by the European Union – NextGenerationEUThe project was implemented within the The Country for the Future programme of the Ministry of Industry and Trade and co-financed by the European Union under NextGenerationEU.Support · Examples

Czech Republic – The Country for the FutureFunded by the European Union – NextGenerationEUThe project was implemented within the The Country for the Future programme of the Ministry of Industry and Trade and co-financed by the European Union under NextGenerationEU.Support · Examples