leBlur()
            this.selection.restore()
          }
          this.popups.hide('customPlugin.popup')
        }
      }
    })

    // Define custom popup close button icon and command.
    FroalaEditor.DefineIcon('popupClose', { NAME: 'times', SVG_KEY: 'close' });
    FroalaEditor.RegisterCommand('popupClose', {
      title: 'Close',
      undo: false,
      focus: false,
      callback: function () {
        this.customPlugin.hidePopup();
      }
    })

    // Define custom popup 1.
    FroalaEditor