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: