Days
Hours
Minutes
Seconds
x

New Froala Editor v5.0.0 is here โ€“ Learn More

Skip to content
Froala Documentation

Custom Elements

Custom Popup

For custom popups you should do the following:

  1. Create Popup
  2. Show Popup
  3. Hide Popup

For a working example please see the Custom Popup Example

Create Popup

First we have to define a template for the custom popup and a list of buttons if necessary. The list of buttons can contain any button already defined in the editor (e.g. bold).

Secondly we can create the popup.

Define the buttons (if they haven't been defined already) from the custom popup.

Show Popup

The code below can be used to show the custom popup.

We must define the editor toolbar button that opens the custom popup:

Hide Popup

The JS code for hiding the custom popup:

Complete Example

Below is a complete example of how to create a custom popup:


Do you think we can improve this article? Let us know.

Sign up

Download the code by signing up for our newsletter

Sign up

Download the code by signing up for our newsletter

Note: By registering, you confirm that you agree to the processing of your personal data by Froala, Inc. - Froala as described in the Privacy Statement. Froala, Inc. - Froala is part of the Idera group and may share your information with its parent company Idera, Inc., and its affiliates. For further details on how your data is used, stored, and shared, please review our Privacy Statement.