postyou / headline-tiny-mce
HTML headline for Contao
Installs: 123
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:contao-bundle
Requires
- php: ^8.0
- contao-components/tinymce4: ^5.0
- contao/core-bundle: ^4.13
- symfony/config: ^5.4
- symfony/dependency-injection: ^5.4
- symfony/http-kernel: ^5.4
Requires (Dev)
- contao/manager-plugin: ^2.0
- friendsofphp/php-cs-fixer: ^3.12
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
README
This Contao CMS extension adds a small TinyMCE editor to all DCA headline
fields and allows HTML tags for them.
Template
The be_tinyHeadlineMCE.html5
template is used by default. It disables the paragraph root block and limits the valid elements. Only phrasing content should be allowed inside of HTML headings.
<script> window.tinymce && tinymce.init({ ... // limit height height: 110, // disable menubar menubar: false, // disable default <p></p> root blocks forced_root_block: false, // limit toolbar according to valid_elements toolbar: 'link unlink | bold italic | code', valid_elements: 'a[href|target|title],strong/b,em/i,br' }); </script>