Froala Documentation
- Installation Guides
- Browser Support
- Languages Support
- Shortcuts
- Activation
- Examples
- Customize the Editor
- Use-cases
- Plugins
- APIs
- Development Frameworks
- Server Integrations
- Server SDKs
- Migration Guides
- Changelog
- Tutorials
- Froala Docs
- /
- Plugins
- /
- Align Plugin
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:
Whats on this page
hide
