Download the PHP package heimrichhannot/contao-tinymce-bundle without Composer
On this page you can find all versions of the php package heimrichhannot/contao-tinymce-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download heimrichhannot/contao-tinymce-bundle
More information about heimrichhannot/contao-tinymce-bundle
Files in heimrichhannot/contao-tinymce-bundle
Package contao-tinymce-bundle
Short Description This bundle offers support for the JavaScript library tinyMCE for the frontend of the Contao CMS.
License LGPL-3.0-or-later
Informations about the package contao-tinymce-bundle
Contao TinyMCE Bundle
This bundle offers support for the JavaScript library tinyMCE for the frontend of the Contao CMS.
Features
- activate tinymce support on page level (with inheritance and override option)
- customize options from dca or dynamically from event
- heimrichhannot/contao-encore-bundle support
- define maximum input chars for tinymce editors
Installation
Install via composer: composer require heimrichhannot/contao-tinymce-bundle
.
If you don't use heimrichhannot/contao-encore-bundle, you can proceed to the configuration chapter.
Using heimrichhannot/contao-encore-bundle
Add the following javascript to your project's webpack.config.js
(this is needed to have the skins and languages in your web/build folder):
Usage
Allow TinyMce in your page configuration and enable it in the field dca.
Out of the box there is only one preset available: limited
. You can add more presets through the AddOptionPresetEvent
or customize the configuration by yourself in the dca. See configuration chaptar.
Configuration
Using the DCA
You can set custom options in your dca or use presets:
Additional you can set a character limit:
The character limit will be checked on each keyup event thats dispatched while typing in the configured tinymce editor. There will be an error message above the corresponding field. The form won't be submitted as long as the maximum character count is violated. If the user trys to submit the form the error message will be scrolled into view.
Add custom presets
To reuse your tinyMce configuration, you can add custom presets
Events
Name | Description |
---|---|
AddOptionPresetEvent |
Add custom tinymce presets or customize existing ones. |
CustomizeTinyMceOptionsEvent |
Customize tinymce options and field attributes before rendering. |
All versions of contao-tinymce-bundle with dependencies
contao/core-bundle Version ^4.9
heimrichhannot/contao-encore-contracts Version ^1.0
heimrichhannot/contao-utils-bundle Version ^2.234
psr/container Version ^1.0 || ^2.0
symfony/event-dispatcher Version ^4.4 || ^5.0
symfony/event-dispatcher-contracts Version ^1.0 || ^2.0 || ^3.0
symfony/service-contracts Version ^1.0 || ^2.0 || ^3.0
symfony/translation-contracts Version ^1.0 || ^2.0 || ^3.0