yed above it.
        editor.popups.show('customPlugin.popup', left, top, $btn.outerHeight())
      }

      // Hide the custom popup.
      function hidePopup() {
        editor.popups.hide('customPlugin.popup')
      }

      // Methods visible outside the plugin.
      return {
        showPopup: showPopup,
        hidePopup: hidePopup
      }
    }

    // Define an icon and command for the button that opens the custom popup.
    FroalaEditor.DefineIcon('buttonIcon', { NAME: 'star', SVG_KEY: 'star' })
 