dist/buttons/buttonPreview.command.js
/**
   * Open  the email preview
   *
   * @param editor
   * @param emailId
   */
Open  the email preview
@param editor
@param emailId
Open the email preview @param editor @param emailId
static openPreview(editor, emailId) {
    const mode = ContentService.getMode(editor);
    const url = `${window.location.origin}${mauticBaseUrl}${mode.split('-')[0]}/preview/${emailId}`;
    window.open(url, '_blank');
  }
static openPreview ( editor , emailId ) { const mode = ContentService . getMode ( editor ) ; const url = ` ${ window . location . origin } ${ mauticBaseUrl } ${ mode . split ( '-' ) [ 0 ] } ${ emailId } ` ; window . open ( url , '_blank' ) ; }
Open  the email preview
 @param editor
 @param emailId
Open the email preview @param editor @param emailId