Download the PHP package murdercode/nova4-tinymce-editor without Composer
On this page you can find all versions of the php package murdercode/nova4-tinymce-editor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download murdercode/nova4-tinymce-editor
More information about murdercode/nova4-tinymce-editor
Files in murdercode/nova4-tinymce-editor
Package nova4-tinymce-editor
Short Description Boost your Laravel Nova with the TinyMCE editor.
License MIT
Informations about the package nova4-tinymce-editor
Nova4 TinyMCE Editor
Introduction
Unleash creativity within Laravel Nova using the TinyMCE plugin, making content creation a breeze with its user-friendly and dynamic editing capabilities.
Features
- 📷 Upload images support (BETA)
- 🌙 Dark mode support
- 🔀 Switch between 5 or 6 versions of TinyMCE
- ❌ Can be disabled (by passing readonly() to make method)
Extra
[!IMPORTANT] Want some steroids for your TinyMCE? Check out our new ChatGTP for TinyMCE** plugin! 🚀🚀🚀
Demo & Screenshots
Versioning
This package follows the following versioning scheme:
- v1.x - TinyMCE 5 or 6
- v0.x - TinyMCE version 5 (deprecated)
Prerequisites
- Laravel >= 9
- PHP >= 8.0
- Laravel Nova >= 4
- TinyMCE API Key (get one here)
How to install
In the root of your Laravel installation launch:
Then publish the config:
A file in config/nova_tinymce_editor.php
will appear as follows (you can change the default values):
In your .env
file please add the key (get one here):
Please make sure that you have added domain in your tiny.cloud account list or you will get an error notice message.
Register the Field
In your Nova/Resource.php add the field as following:
Enable Image Upload
[!WARNING] This feature is in BETA and can be unstable or contain bugs/security flaws. We provide it as is, without any warranty. For this reason, is disabled by default.
To enable image upload, you must publish the configuration file with:
then in your config
file config/nova-tinymce-editor.php
:
Please be sure that image
plugin and toolbar button are enabled in your config file.
Protect code
You can to control what contents should be protected from editing while it gets passed into the editor. This is useful for example when you want to protect PHP code from been formatted.
To do this, you must publish the configuration file and add the following line:
Use Alternative CDN / Self Hosted scripts
TinyMCE allows you to use an alternative mirror for scripts. It will be useful if you want to use a non-cloud version (and avoid the new mechanism pricing of Tiny.cloud).
You can simply add in app/Providers/NovaServiceProvider.php
:
TinyMCE will automatic check if there's a script and I'll ignore his script from tiny cloud.
Upgrade from 1.0.x to 1.1.x
The transition to 1.1 involves the use of a new configuration layout compatible with the previous version.
However, if you want to use the new image upload and version change features, it is recommended that you make a
new php artisan vendor:publish
.
Upgrade from 0.x to 1.x
In composer.json
change the version of the package to
"murdercode/nova4-tinymce-editor": "^1.0"
and run composer update
.
Also, you must change the format of the plugin snippet in nova-tinymce-editor
as follows:
0.x
1.x
Feedback and Support
Test, PR (also of this doc) are welcome.