dist/buttons/buttonApply.command.js
/**
   * Create modal to show information about saving email
   *
   * @param editor
   * @param title
   * @param text
   */
Create modal to show information about saving email
@param editor
@param title
@param text
Create modal to show information about saving email @param editor @param title @param text
static showModal(editor, title, text) {
    const modal = editor.Modal;
    const body = document.createElement('div');
    const content = document.createElement('div');
    const footer = document.createElement('div');
    const btnClose = document.createElement('button');
    modal.setTitle(`<h4 class="text-danger">${title}</h4>`);
    content.classList.add('panel-body');
    content.innerText = text;
    body.appendChild(content);
    btnClose.classList.add('btn', 'btn-lg', 'btn-default', 'text-primary');
    btnClose.innerText = 'Close';
    btnClose.onclick = () => {
      modal.close();
    };
    footer.classList.add('panel-footer', 'text-center');
    footer.appendChild(btnClose);
    body.appendChild(footer);
    modal.setContent(body);
    modal.open({
      attributes: {
        class: 'modal-content'
      }
    });
  }
static showModal ( editor , title , text ) { const modal = editor . Modal ; const body = document . createElement ( 'div' ) ; const content = document . createElement ( 'div' ) ; const footer = document . createElement ( 'div' ) ; const btnClose = document . createElement ( 'button' ) ; modal . setTitle ( ` ${ title } ` ) ; content . classList . add ( 'panel-body' ) ; content . innerText = text ; body . appendChild ( content ) ; btnClose . classList . add ( 'btn' , 'btn-lg' , 'btn-default' , 'text-primary' ) ; btnClose . innerText = 'Close' ; btnClose . onclick = ( ) => { modal . close ( ) ; } ; footer . classList . add ( 'panel-footer' , 'text-center' ) ; footer . appendChild ( btnClose ) ; body . appendChild ( footer ) ; modal . setContent ( body ) ; modal . open ( { attributes : { class : 'modal-content' } } ) ; }
Create modal to show information about saving email
 @param editor
 @param title
 @param text
Create modal to show information about saving email @param editor @param title @param text