Download the PHP package waterloobae/tinymce without Composer
On this page you can find all versions of the php package waterloobae/tinymce. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download waterloobae/tinymce
More information about waterloobae/tinymce
Files in waterloobae/tinymce
Package tinymce
Short Description TinyMCE and LaTeX support for Laravel, Livewire, and Filament
License MIT
Informations about the package tinymce
TinyMCE + LaTeX for Laravel, Livewire & Filament
A comprehensive Laravel package providing TinyMCE rich text editor with LaTeX/MathJax support for Laravel Blade, Livewire components, and Filament admin panels.
Features
- 🎨 TinyMCE 8 rich text editor with dark theme support
- 📐 MathJax 3 for beautiful LaTeX equation rendering
- 🖼️ Base64 image uploads (no file storage needed)
- ⚡ Livewire compatible with reactive data binding
- 🎯 Filament custom field and infolist components
- 🎭 Blade components for easy integration
- 🌓 Dark mode automatic detection and switching
- 📦 Zero configuration - works out of the box
Installation
Install via Composer:
The package will auto-register via Laravel's package discovery.
Optional: Publish Views
If you want to customize the views:
This will publish views to resources/views/vendor/tinymce/.
License Key Configuration
The package automatically includes the GPL license key in TinyMCE initialization. If you experience editor loading issues or license warnings, ensure your tinymce.init configuration includes:
This is required when using TinyMCE via CDN with the GPL license.
Usage
1. Filament Form Field
Use in your Filament resource schemas:
Profiles:
minimal- Basic formatting (bold, italic, lists, links)simple- Standard features (formatting, images, tables, code)full- All features (media, code samples, preview, etc.)
Custom Configuration:
2. Filament Table Column
Display HTML with LaTeX rendering in Filament table listings:
With all table column options:
3. Filament Infolist Entry (View)
Display HTML with LaTeX rendering in Filament view pages:
Or use the standard TextEntry with custom view:
4. Livewire Component
Use in any Livewire component:
With Livewire properties:
5. Regular Blade Forms
Use in standard Laravel Blade forms (non-Livewire):
6. Display HTML with LaTeX (Blade Component)
Render HTML content with LaTeX equations:
With custom classes:
LaTeX Support
The package supports both inline and display math equations using standard LaTeX syntax:
Inline equations:
Display equations:
Examples
Complete Filament Resource Example
Complete Livewire Example
Component Options
TinyMCE Editor Options
| Option | Type | Default | Description |
|---|---|---|---|
name |
string | 'content' | Form field name |
value |
string | '' | Initial value |
wire:model |
string | null | Livewire property binding |
profile |
string | 'simple' | Editor profile (minimal/simple/full) |
height |
int | 400 | Editor height in pixels |
HtmlWithLatex Options
| Option | Type | Default | Description |
|---|---|---|---|
content |
string | '' | HTML content to render |
class |
string | 'prose prose-sm dark:prose-invert max-w-none' | CSS classes |
Features in Detail
Base64 Image Handling
Images are automatically converted to base64 when:
- Pasting images from clipboard
- Dragging and dropping images
- Selecting images via file picker
This eliminates the need for file storage and makes content portable.
Dark Mode Support
The editor automatically detects your application's dark mode:
- Applies
oxide-darkskin in dark mode - Applies
oxideskin in light mode - Content styling adjusts automatically
Profiles
Minimal Profile:
- Plugins: lists, link
- Toolbar: bold, italic, bullets, numbers, links
- Perfect for: Comments, short descriptions
Simple Profile (Default):
- Plugins: lists, link, image, table, code
- Toolbar: formatting, lists, links, images, code
- Perfect for: Blog posts, articles, general content
Full Profile:
- Plugins: all available plugins
- Toolbar: comprehensive formatting and media tools
- Perfect for: Documentation, complex articles, technical writing
Requirements
- PHP 8.1 or higher
- Laravel 10.x, 11.x, or 12.x
- Livewire 3.x
- Filament 3.x or 4.x (optional, only needed for Filament components)
Browser Compatibility
- Modern browsers with JavaScript enabled
- MathJax 3 browser support
Tests
Install the package's development dependencies and run its Pest suite from the package directory:
Migration Guide
If you're upgrading from a previous version or custom components, ensure you use the correct namespaces:
Filament Forms
Filament Infolists
Filament Tables
Blade Components
CDN Resources
This package uses the following CDN resources:
- TinyMCE 8.9.2 from jsdelivr.net
- MathJax 3 from jsdelivr.net
Troubleshooting
Editor Not Loading
If the TinyMCE editor doesn't load:
- Check browser console for JavaScript errors
- Ensure CDN resources are accessible
- Verify Livewire is properly installed for
wire:model - Clear Laravel view cache:
php artisan view:clear
LaTeX Not Rendering
If LaTeX equations aren't rendering:
- Check that MathJax CDN is accessible
- Verify equations use correct delimiters (
$...$or$$...$$) - Check browser console for MathJax errors
- Try refreshing the page to trigger MathJax processing
Dark Mode Issues
If dark mode isn't working:
- Ensure your app provides
darkclass on<html>or<body>tag - Check that Tailwind dark mode is configured
- Clear browser cache
Changelog
1.4.3 (2026-09-28)
- Updated TinyMCE CDN assets to version 8.9.2
- Replaced the full-profile
formatselecttoolbar item withblocks - Added package-local Pest tests and PHP 8.5 support
2.0.0 (2025-11-24)
- BREAKING: Updated TinyMCE from version 6 to version 8
- Improved editor performance and features with latest TinyMCE
- Updated all CDN references to TinyMCE 8
1.0.1 (2025-10-24)
- Added
HtmlWithLatextable column component for Filament tables - Improved LaTeX rendering in table views with MathJax support
- Updated documentation with table column usage examples
1.0.0 (2025-10-23)
- Initial release
- TinyMCE 6 integration
- MathJax 3 support
- Filament form and infolist components
- Livewire support
- Blade components
- Dark theme support
- Base64 image handling
License
This package is licensed under the MIT License. See LICENSE file for details.
Important Note: This package integrates with TinyMCE, which is licensed under the GNU General Public License (GPL) v2+. When using this package, you are using TinyMCE via CDN, and you must comply with TinyMCE's GPL license terms. For more information about TinyMCE's licensing, visit https://www.tiny.cloud/pricing/ or consider their commercial licensing options if GPL is not suitable for your project.
Credits
- TinyMCE - https://www.tiny.cloud/
- MathJax - https://www.mathjax.org/
- Laravel - https://laravel.com/
- Livewire - https://livewire.laravel.com/
- Filament - https://filamentphp.com/
Support
For issues, questions, or contributions, please visit: https://github.com/waterloobae/tinymce
All versions of tinymce with dependencies
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
livewire/livewire Version ^3.0|^4.0