Days
Hours
Minutes
Seconds
x

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

Skip to content
Froala Documentation

Inline Class Plugin

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

Define custom classes for selected text.


Plugin options:

inlineClasses
Object -
Set custom classes for the selected text. This option is an Object where the key is the name of the new class that appears in the dropdown and the value specifies the class name for it.


Default: {
'fr-class-code': 'Code',
'fr-class-highlighted':
'Highlighted',
'fr-class-transparency':
'Transparent'
}

Plugin methods:

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

Add Plugin to your code:

Plugin name: inlineClass

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

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

Plugin CSS link:



Example :

โ— Inline classes

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.