heimrichhannot / contao-input-counter-bundle
This bundle offers character counting for backend fields for a better editing usability.
Installs: 179
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 7
Forks: 1
Open Issues: 1
Type:contao-bundle
Requires
- php: ^7.1 || ^8.0
- contao/core-bundle: ^4.4
- heimrichhannot/contao-utils-bundle: ^2.0
This package is auto-updated.
Last update: 2024-11-06 11:21:46 UTC
README
This bundle offers character counting for backend fields for a better editing usability.
Installation
Install via composer: composer require heimrichhannot/contao-input-counter-bundle
Configuration
Configuration is easy as adding the following code to a config.php
:
$GLOBALS['HUH_INPUT_COUNT'] = [
[
'table' => 'tl_news', // the dca table name
'fields' => [
[
'name' => 'headline', // the field's name
'max' => 50, // the maximum character count (if not set, the field's maxlength eval property is used if available)
'skipColoring' => true // activate/deactivate coloring (default: false)
],
// ...
]
],
// ...
];
Known limitations
- currently no support for tinyMCE due to the lack of having an event for every content change in tinyMCE (keyup, change, cut and paste work, but for style changes there's no event)