Download the PHP package marshmallow/nova-tinymce without Composer
On this page you can find all versions of the php package marshmallow/nova-tinymce. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marshmallow/nova-tinymce
More information about marshmallow/nova-tinymce
Files in marshmallow/nova-tinymce
Package nova-tinymce
Short Description This Nova package allow you to use TinyMCE editor for text areas.You can customize the editor options and... you can upload images to your server and put them rigth there on the text without leaving the text editor!
License MIT
Informations about the package nova-tinymce
Laravel Nova TinyMCE editor
This Nova package allows you to use TinyMCE editor for text areas. You can customize the editor options.
Composer
You can install the package via composer:
Installation
Run the command bellow, to publish TinyMCE JavaScript and CSS assets.
Usage
Include TinyMCE
in your fields array on the Nova Resource.
Add custom HTML (buttons)
To add buttons or custom html with the click of a button, you can call the buttons()
method when you're making the field.
Add variables
To add variables with the click of a button, you can call the variables()
method when you're making the field. More docs see: https://www.npmjs.com/package/icp-tinymce-variable
Set the height
The default height of the TinyMCE editor is handled by the nova-tinymce.php
config file. If there is a need to change the height on some TinyMCE fields, you can do this by calling the height()
method when you're making the field.
Override config file
You can publish the config and override all TinyMCE
settings.
Adding custom styling
If you want to add an extra styling that can be used on all TinyMCE fields, you need to publish the config file. In can add your custom styling options to the custom_items
array in the config file. These custom styling options should look like the example below.
Plugin customization
You can pass any configuration option for the javascript SDK to the array in the options()
method.
For example, you like to have increased the height of the text area:
You can see the full list of parameters in the docs: https://www.tiny.cloud/docs/configure/
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- All Contributors
License
The MIT License (MIT). Please see License File for more information.