Download the PHP package energon7/nova-tinymce without Composer
On this page you can find all versions of the php package energon7/nova-tinymce. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download energon7/nova-tinymce
More information about energon7/nova-tinymce
Files in energon7/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 (with images upload capabilities!)
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 right there on the text without leaving the text editor!!
Installation
In order to work with this editor you need to create a free account to get the editor API_KEY. Once you have don this, create this key inside your config/nova.php
file
and add the TINYMCE_API_KEY
to your .env file with the key from tiny.cloud website.
Usage
In your Nova resource add the use declaration and use the NovaTinyMCE field:
By default, the editor comes with default options and the image without the filemanager. You can use custome options like this:
Using the upload images feature
Now if you need to upload images from the text editor, we need to install UniSharp Laravel Filemanager, and pass the use_lfm
key to your options array:
In case you change the laravel-filemanager
URL in the package config file, you need to pass that info to this nova field with the lfm_url
key in the options array.
Extra configuration and plugin customization
You can virtually 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-3x/reference/Configuration3x/