Days
Hours
Minutes
Seconds
x

Froala Editor v4.3 is hereLEARN MORE

Skip to content

Align Plugin

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: