Download the PHP package oliveoilexpert/ckeditor-icons without Composer
On this page you can find all versions of the php package oliveoilexpert/ckeditor-icons. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oliveoilexpert/ckeditor-icons
More information about oliveoilexpert/ckeditor-icons
Files in oliveoilexpert/ckeditor-icons
Package ckeditor-icons
Short Description Adds an icon dropdown to CKEditor in TYPO3.
License GPL-2.0-or-later
Informations about the package ckeditor-icons
CKEditor 5: Custom Icons Plugin (TYPO3 Extension)
Adds an icon dropdown for custom icon fonts to CKEditor in TYPO3.
Out of the box Font Awesome Free icons are available.
Extendable with any custom icon font!
Installation
Perform the following steps:
- Load and install the extension
- Extend your CKEditor configuration (see below)
CKEditor configuration
Adding icons
The idea is that any extension can provide an icon font and they are all displayed in one dropdown.
To add icons in your extension, perform the following steps:
- Create a CKEditor plugin in your extension that adds icons to the
Iconsplugin - Register the Plugin JavaScript file in your extension's
JavaScriptModules.phpfile - Add the plugin to the CKEditor configuration
- Add styles to the CKEditor view so the icons are displayed correctly
1. Create a CKEditor plugin JavaScript class in your extension
Note: this is just an example. All that is really mandatory is that you call the addItems method of the Icons plugin.
While every item in the icons array is an object, the only mandatory property is key.
In this more advanced example, the icons are imported from a data file (generated by your icon font build process, for example), and then mapped to use all the available icon options.
Icon tags are rendered as follows:
2. Register the JavaScript file in your extension's "JavaScriptModules.php" file
3. Add the plugin to the CKEditor configuration
4. Add styles to the CKEditor view so the icons are displayed correctly
Whatever styling is necessary to display the icons correctly in the frontend also needs to be added to the CKEditor view.
In ext_localconf.php:
All versions of ckeditor-icons with dependencies
typo3/cms-rte-ckeditor Version >=12.4.0 < 14.3.99