dist/buttons/buttonApply.command.js
/**
   * Send POST request for sending the form, get and handle response
   * Use the global Mautic postForm function
   *
   * @param editor
   * @param sender
   */
Send POST request for sending the form, get and handle response
Use the global Mautic postForm function

@param editor
@param sender
Send POST request for sending the form get and handle response Use the global Mautic postForm function @param editor @param sender
static postForm(editor, sender) {
    const mauticForm = ButtonsService.getMauticForm();
    sender.set('className', 'fa fa-spinner fa-spin');
    ButtonApplyCommand.setDefaultValues(editor);
    Mautic.inBuilderSubmissionOn(mauticForm);
    Mautic.postForm(mauticForm, ButtonApplyCommand.postFormResponse.bind(this, editor, sender));
    Mautic.inBuilderSubmissionOff();
  }
static postForm ( editor , sender ) { const mauticForm = ButtonsService . getMauticForm ( ) ; sender . set ( 'className' , 'fa fa-spinner fa-spin' ) ; ButtonApplyCommand . setDefaultValues ( editor ) ; Mautic . inBuilderSubmissionOn ( mauticForm ) ; Mautic . postForm ( mauticForm , ButtonApplyCommand . postFormResponse . bind ( this , editor , sender ) ) ; Mautic . inBuilderSubmissionOff ( ) ; }
Send POST request for sending the form, get and handle response
 Use the global Mautic postForm function
Send POST request for sending the form get and handle response Use the global Mautic postForm function