contextualcode / ezplatform-alloyeditor-special-characters
eZ Platform bundle which provides UI to insert special characters in Online Editor
v2.0.1
2020-05-15 13:43 UTC
Requires
- ezsystems/ezplatform-admin-ui: ^2.0
- ezsystems/ezplatform-richtext: ^2.0
- symfony/flex: ^1.6.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
This package is not auto-updated.
Last update: 2024-12-21 11:10:32 UTC
README
This bundle allows inserting special characters in eZ Platform Online Editor.
Installation
Require via composer
composer require contextualcode/ezplatform-alloyeditor-special-characters
Clear browser caches and enjoy!
Using CKEditor add-on in eZ Platform UI
This bundle is a good showcase for using CK Editor plugin in eZ Platform. It relies on Special Characters CKEditor add-on.
If you want to make a similar bundle for any other CKEditor add-on, just follow these steps:
- Add CKEditor add-on to your source: src/bundle/Resources/public/js/alloyeditor/plugins/specialchar.
- Create an external source for previously added add-on: src/bundle/Resources/public/js/alloyeditor/externals.js
- Add plugin external source to encore configuration: src/bundle/Resources/encore/ez.config.manager.js
- Register added plugin in eZ Platform Admin UI: src/bundle/Resources/config/ezrichtext.yaml
- In most cases, CKEditor plugins have their buttons, but they require minor CSS fixes to be nice and shiny in eZ Platform Admin UI. Alternatively, you can create a new button: src/bundle/Resources/public/js/alloyeditor/buttons/special-characters.js
- Enable the button from the previous step in desired Online Editor toolbars: src/bundle/Resources/config/ezpublish.yaml
You can find more details at Extending eZ Platform Online Editor blog post.