Download the PHP package cbp/redactor-fa-list without Composer
On this page you can find all versions of the php package cbp/redactor-fa-list. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cbp/redactor-fa-list
More information about cbp/redactor-fa-list
Files in cbp/redactor-fa-list
Package redactor-fa-list
Short Description Adds a way to add font awesome icons as list markers in Redactor.
License MIT
Informations about the package redactor-fa-list
Redactor Font Awesome List
This redactor plugin allows you to add Font Awesome icons as markers for your redactor lists.
Will generate HTML through a simple icon picker:
See Font Awesome's Icons in a List.
Requirements
This plugin requires Craft CMS 3.1 or later as well as the Craft Redactor plugin v2.0 or later.
Installation
Install through the Plugin Store.
Alternatively, you can download and install this plugin with Composer.
Open your terminal and run the following commands:
Adding to your Redactor fields
Include the plugin in your Redactor config file located in config/redactor/Default.json
. To do so, add "falist"
in the plugins array:
NOTE: Don't forget to include Font Awesome on your front-end.
Allow Certain Icons and Styles
By default, over 1000 Font Awesome icons are available to be selected from within the field. If you want to limit which icons your authors can select, you can override the setting value.
Create a new file config/redactor-fa-list.php
:
If only a string is provided (as above), it will default to the Solid (.fas
) styling. To specify styled icons, use a key => value
pair:
Specify Versions
Since, by default, only free Solid styles are assumed, the Font Awesome CSS webfont is loaded to display icons in the redactor field automatically. If you choose to use other icon styles or target a specific version of FA, you need to include the proper CSS file(s) in your settings override:
NOTE: Currently there are too many bugs with using FA Kits with the redactor fields, so support was removed in v1.0.4 of this plugin. However, just because you use the webfont CDN on the backend doesn't mean you can't use the FA Kit script for your frontend :)