Days
Hours
Minutes
Seconds
x

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

Skip to content
Froala Documentation

Align Plugin

Plugins are fully functional during your trial once you've added your trial key to the setup.

Align plugin will add these buttons and functionality to Froala editor:

  • Align Left.
  • Align Center.
  • Align Right.
  • Align Justify.

These buttons will display by default at the More paragraph menu.


Plugin methods:

align.apply (value)
returns: Object
Set the alignment of the selected paragraphs
Value: The alignment value: left, right, center or justify. Type: String
align.refresh ($btn)
returns: Object
Refresh the alignment of the selected paragraphs.
$btn: An button element of command. Type: DOM Object

Add Plugin to your code:

Plugin name: align

Plugin JS Script: ../js/plugins/align.min.js

Or from CDN https://cdn.jsdelivr.net/npm/froala-editor@latest/js/plugins/align.min.js

Plugin CSS link: _


Example:

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.