wimski / nova-froala-field
A Laravel Nova Froala WYSIWYG Editor Field.
3.2.0
2022-11-24 11:46 UTC
Requires
- php: ^7.4 || ^8.0
- laravel/nova: *
- spatie/image-optimizer: ^1.1
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ^3.8|^4.0
- phpunit/phpunit: ^7.0|^8.0
This package is auto-updated.
Last update: 2024-10-24 16:11:55 UTC
README
⚠️ This is a fork of the original Nova Froala Field which has been archived! :warning
Installation
composer require wimski/nova-froala-field
Usage
See original README.md.
Custom Elements
To add custom elements like buttons, icons or plugins, you can create separate scripts and load them in the editor.
See also the documentation: https://froala.com/wysiwyg-editor/docs/concepts/custom/button/
// config/froala-field.php return [ 'options' => [ 'custom_elements' => [ 'froala/custom-elements/buttons/my-custom-button.js', ], ], ];
// public/froala/custom-elements/buttons/my-custom-button.js (function (FroalaEditor) { FroalaEditor.RegisterCommand('MyCustomButton', { // ... }); });