Days
Hours
Minutes
Seconds
x

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

Skip to content
Froala Documentation

Line Height Plugin

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

Allows users to select the line height for the current selected paragraph.


Plugin options:

lineHeights
Object -
Set the line height for the current selected paragraph.
Default: {
Default: '',
Single: '1',
'1.15': '1.15',
'1.5': '1.5',
Double: '2'
}

Plugin methods:

lineHeight.apply (value)
returns: Object
Apply the given line height to selected text.
โ— value: The value of the line height to apply.
Type: String

Add Plugin to your code:

Plugin name: lineHeight

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

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

Plugin CSS link:


Example :

โ— Change Line Height

Ready to dive in? Explore our plans