Days
Hours
Minutes
Seconds
x

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

Skip to content
Froala Documentation

Inline Style Plugin

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

Define custom styles for selected text.


Plugin options:

inlineStyles
Object -
Set custom styles for the selected text. This option is an Object where the key is the name of the new style that appears in the dropdown and the value specifies the CSS properties for it.
Default:
{
'Big Red': 'font-size: 20px;
color: red;',
'Small Blue': 'font-size: 14px;
color: blue;'
}

Plugin methods:

inlineStyle.apply (value)
returns: Object
Apply the passed style to the current selected text or start typing the in the passed style if no text is selected.
โ— value: The value of the style to apply.
Type: String

Add Plugin to your code:

Plugin name: inlineStyle

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

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

Plugin CSS link:


Example :

โ— Inline styles

Ready to dive in? Explore our plans

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.