1. For Plugin initialization, you have to call the window.Stripo.init function:

window.Stripo.init({[put here your plugin JSON configuration]});

2. The default initialization script for the Stripo Plugin should go with these items

   settingsId: '[put here ID of your settings container]',
   previewId: '[put here ID of your preview container]',
   html: '[put here HTML code of your email]',
   css: '[put here CSS code of your email]',
   apiRequestData: {
      emailId: '[put here ID of email in your external application]'
   getAuthToken: function(callback) {
  • the first and second values are the values which you have previously specified for these 2 containers;

  • then you should pass/transmit that HTML and CSS which will be loaded for your customers when they open the editor. You should have a list of email templates that are stored on your end; 

  • in the apiRequestData section, you have to specify the mandatory emailId parameter (for these HTML and CSS) which we will serve as Unique ID and specify all other parameters that will be sent to the server with each request. They may be used to identify a path to the Image storage documents and modules. You can use any parameter you want, just be sure that it passes to the apiRequestData parameter during Plugin initialization;

  • the last important part of the Plugin initialization is the getAuthToken function which is required for your authentication. Plugin calls function (this parameter value) each time when a token is expired in order to get a new one. You have to implement this method on your side and it will be an automatic process. Please refer to the Plugin authentication article for more details and a manual.

Please note that you can specify any other parameters which you will find in the list of available configuration parameters during the Plugin initialization.

Did this answer your question?