Contao 5 tinyMCE anpassen
Hallo zusammen,
dieser Teil in der Doku bzgl. der Editor Konfiguration funktioniert so wohl nicht mehr, kann mir jemand sagen wie ich das ändern muss?
Mein jetziger Code im be_tinyMCE.html5 sieht so aus
Mein jetziger Code im be_tinyMCE.html5 sieht so aus
PHP-Code:
<?php $this->extend('be_tinyMCE'); ?>
<?php
$this->block('content_css'); ?>
importcss_selector_filter: ".myDummyPrefix-",
content_css: [
'system/themes/<?= Backend::getTheme() ?>/tinymce.min.css',
'files/theme/css/myCustomTiny.css'
],
style_formats_merge: true,
style_formats: [
{title: 'Eigene Formate', items: [
{title: 'Text Rot', inline: 'span', attributes: {'class':'text--red'}},
{title: 'Text Orange', inline: 'span', attributes: {'class':'text--orange'}},
{title: 'Text Gruen', inline: 'span', attributes: {'class':'text--green'}},
{title: 'Hintergrund Rot', inline: 'span', attributes: {'class':'bg--red'}},
{title: 'Schrift 1.25', block: 'p', attributes: {'class':'font_norm'}},
{title: 'Schrift 1.5', block: 'p', attributes: {'class':'font_bigger'}},
{title: 'Schrift 2', block: 'p', attributes: {'class':'font_biggest'}},
]}
],
<?php $this->endblock(); ?>
<?php $this->block('custom'); ?>
toolbar: 'link unlink | blocks | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | code',
removed_menuitems:'image,fullscreen,blocks,fontfamily,fontsize,fontsize_class,fontname,backcolor,forecolor,lineheight',
paste_as_text: true,
<?php $this->endblock(); ?>
Die Fehlermeldung lautet
Zitat:
Attempted to load class "Backend" from the global namespace.
Did you forget a "use" statement?
was genau muss da nun anders bitte :o:o ?