Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Tinymce4 Laravel Package

contao-components/tinymce4

TinyMCE 4 integration for Contao CMS. Provides a ready-to-use editor component and configuration suited to Contao back end usage, helping you embed and manage the TinyMCE WYSIWYG editor in your Contao installation.

View on GitHub
Deep Wiki
Context7

TinyMCE integration

Frequently asked questions about Tinymce4
Can I use this package directly in Laravel without Contao?
No, this package is designed for Contao CMS and lacks Laravel-specific features like service providers or Blade directives. You’d need to manually extract TinyMCE4 assets and integrate them via Laravel Mix or Vite, which may introduce compatibility issues with modern Laravel stacks.
What Laravel versions does this package support?
This package doesn’t officially support Laravel—it’s built for Contao. However, you could integrate TinyMCE4’s assets into Laravel 8+ using Vite or Laravel Mix, but expect potential conflicts with Laravel’s frontend ecosystem (e.g., jQuery dependencies). Test thoroughly in your target Laravel version.
How do I configure TinyMCE4 for custom toolbars or plugins in Laravel?
Since this package is Contao-focused, you’d need to manually initialize TinyMCE4 via JavaScript in your Laravel Blade views or frontend assets. Use TinyMCE4’s configuration options in a script tag or Vite entry file, but ensure your custom plugins are compatible with the extracted assets.
Is TinyMCE4 secure for production use in Laravel?
TinyMCE4 is outdated and lacks modern security patches, making it risky for production. Audit the extracted JS/CSS for vulnerabilities (e.g., XSS, CSP issues) before use. Consider TinyMCE5/6 or alternatives like CKEditor for better security and maintenance.
How do I store TinyMCE4 content in Laravel’s database?
TinyMCE4 content is typically stored as HTML in Contao’s database. In Laravel, you’d map this to an Eloquent model field (e.g., `text` or `longText`). Use Laravel’s `htmlspecialchars_decode()` when retrieving content to ensure proper rendering, but sanitize input to prevent XSS.
Will this package work with Laravel’s asset pipelines (Vite/Webpack)?
Yes, but with caveats. Extract TinyMCE4’s JS/CSS files and include them in your Vite config. TinyMCE4 relies on jQuery, which may conflict with Laravel’s modern frontend stack. Test thoroughly and consider polyfilling jQuery if absolutely necessary—or migrate to TinyMCE5/6 for a jQuery-free solution.
Are there Laravel-specific alternatives to this package?
Yes, for Laravel, consider `spatie/laravel-tinymce` (TinyMCE5/6) or `unisharp/laravel-ckeditor` for better integration, security, and maintenance. These packages include Laravel service providers, Blade directives, and modern asset handling, reducing manual setup.
How do I handle TinyMCE4’s jQuery dependency in Laravel 10+?
Laravel 10+ discourages jQuery due to its legacy status. If you must use TinyMCE4, include jQuery via a CDN or npm in your Vite config, but be aware of potential conflicts with Laravel’s Alpine.js or Inertia.js. For new projects, avoid TinyMCE4 and opt for TinyMCE5/6, which supports jQuery-free mode.
Can I use this package for a Contao-to-Laravel migration?
Partially. You can extract TinyMCE4 assets for Contao’s legacy editor functionality, but you’ll need to rebuild Contao-specific features (e.g., database field mappings, backend integration) in Laravel. For a smoother migration, evaluate TinyMCE5/6 or CKEditor with Laravel wrappers to avoid technical debt.
What maintenance challenges should I expect with TinyMCE4 in Laravel?
TinyMCE4 is unsupported and lacks updates, so you’ll handle security patches manually. Contao-specific logic may not translate cleanly to Laravel, requiring ongoing customization. For long-term projects, prioritize modern alternatives like TinyMCE5/6 or CKEditor to avoid maintenance burdens.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity