Download the PHP package moonshine/tinymce without Composer
On this page you can find all versions of the php package moonshine/tinymce. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download moonshine/tinymce
More information about moonshine/tinymce
Files in moonshine/tinymce
Package tinymce
Short Description TinyMce editor for MoonShine
License MIT
Homepage https://moonshine-laravel.com
Informations about the package tinymce
TinyMce field for MoonShine Laravel admin panel
Extends Textarea and has the same features
[!IMPORTANT] Before using this field, you must register on the site at Tiny.Cloud, get the token and add it to the
.env
Compatibility
MoonShine | Moonshine TinyMce | Currently supported |
---|---|---|
>= v3.0 | >= v1.0.0 | yes |
Installation
Usage
Default config
TinyMce
field uses the most common settings such as plugins, menubar and toolbar by default
To change the default settings, you need to publish the configuration file:
You can also add additional options to the configuration file that will apply to all TinyMce
fields
Locale
The default is your application's locale, but using the locale()
method you can define a specific locale
English (en), Russian (ru) and Ukrainian (uk) are currently available, but we are always ready to add the others.
To add new localizations, create an issue or make a pull request
Plugins
The plugins()
method allows you to completely override the plugins that the field will use
The addPlugins()
method allows you to add new plugins to the default plugins
The removePlugins()
method allows you to exclude plugins that the field will use
Menubar
The menubar()
method allows you to completely override menubar for a field
Toolbar
The toolbar()
method allows you to completely override toolbar for a field
Options
The addOption()
method allows you to add additional options for a field
The addCallback()
method allows you to add callback options for a field
[!NOTE] You can use string, number, boolean and array as values.
File manager
If you want to use the file manager in TinyMce, you need to install the package Laravel FileManager
Installation
[!NOTE] Be sure to set the 'use_package_routes' flag in the lfm config to false, otherwise caching routes will cause an error.
Routes file
Create a routes file like routes/moonshine.php
and register the LaravelFilemanager routes.
File registration
Register the generated routes file in app/Providers/RouteServiceProvider.php
[!WARNING] The route file must be in the middleware
moonshine
group![!IMPORTANT] In order to allow access only to users authorized in the admin panel you need to add middleware
MoonShine\Laravel\Http\Middleware\Authenticate.
Configuration
You need to add an option for the field
or add in the config/moonshine_tinymce.php
configuration file to apply to all TinyMCe
fields
All versions of tinymce with dependencies
ext-curl Version *
ext-json Version *