TinyMCE + LaTeX support for Laravel, Livewire, and Filament.
This package integrates TinyMCE 8 with MathJax 3 so you can author and display rich mathematical content in Laravel projects. It works in regular Blade forms, Livewire components, and Filament resources with minimal setup.
Install via Composer:
composer require waterloobae/tinymce
Optional view publishing:
php artisan vendor:publish --tag=tinymce-views
When needed, set TinyMCE GPL key explicitly with license_key: 'gpl' in your editor config.
Filament form field:
use Waterloobae\TinyMce\Forms\Components\TinyEditor;
TinyEditor::make('description')
->profile('simple')
->columnSpanFull();
Filament table preview with LaTeX:
use Waterloobae\TinyMce\Tables\Columns\HtmlWithLatex;
HtmlWithLatex::make('content')
->limit(50)
->wrap();
Livewire editor binding:
<x-tinymce::tinymce-editor
wire:model="content"
profile="full"
height="500"
/>
Regular Blade form usage:
<x-tinymce::tinymce-editor
name="description"
:value="old('description', $article->description ?? '')"
profile="simple"
/>
Render stored HTML with LaTeX:
<x-tinymce::html-with-latex :content="$article->description" />
Inline math:
Einstein equation: $E = mc^2$
Display math:
$$
\int_{a}^{b} f(x)dx
$$