Hallo
Beim Link einfügen/bearbeiten mit TinyMCE in News wird der Reiter «Dateien» nicht angezeigt.
es können keine Bilder und Dateien verlinkt werden.
Oberes Bild fehlt der Reiter «Dateien»:
Das Contao-Forum sagt das Tiny-Template sei nicht aktuell.
Das aktuelle be_tinymce template (Eclipse):
– Meine Contao Version 4.13.36
Beim Link einfügen/bearbeiten mit TinyMCE in News wird der Reiter «Dateien» nicht angezeigt.
es können keine Bilder und Dateien verlinkt werden.
Oberes Bild fehlt der Reiter «Dateien»:
Das Contao-Forum sagt das Tiny-Template sei nicht aktuell.
Das aktuelle be_tinymce template (Eclipse):
Code:
<?php
namespace Contao;
if ($GLOBALS['TL_CONFIG']['useRTE']): ?>
<?php
$GLOBALS['TL_JAVASCRIPT'][] = $this->asset('js/tinymce.min.js', 'contao-components/tinymce4');
?>
<script>
var options =
{
selector: '#<?= $this->selector ?>',
language: '<?= Backend::getTinyMceLanguage() ?>',
element_format: 'html',
document_base_url: '<?= Environment::get('base') ?>',
entities: '160,nbsp,60,lt,62,gt,173,shy',
branding: false,
setup: function(editor) {
editor.getElement().removeAttribute('required');
},
init_instance_callback: function(editor) {
if (document.activeElement && document.activeElement.id && document.activeElement.id == editor.id) {
editor.editorManager.get(editor.id).focus();
}
editor.on('focus', function() { Backend.getScrollOffset(); });
},
<?php if( \version_compare(VERSION,'4.9','<=') ): ?>
file_browser_callback: function(field_name, url, type, win) {
Backend.openModalBrowser(field_name, url, type, win, '<?= $this->source ?>');
},
<?php endif; ?>
<?php if( \version_compare(VERSION,'4.13','>=') ): ?>
<?php $this->block('picker'); ?>
file_picker_callback: function (callback, value, meta) {
Backend.openModalSelector({
'id': 'tl_listing',
'title': document.getElement('.tox-dialog__title').get('text'),
'url': Contao.routes.backend_picker + '?context=' + (meta.filetype == 'file' ? 'link' : 'file') + '&extras[fieldType]=radio&extras[filesOnly]=true&extras[source]=<?= $this->source ?>&value=' + value + '&popup=1',
'callback': function(table, val) {
callback(val.join(','));
}
});
},
<?php $this->endblock(); ?>
<?php endif; ?>
file_picker_types: <?= json_encode($this->fileBrowserTypes) ?>,
<?php $this->block('plugins'); ?>
plugins: 'autosave charmap code fullscreen image importcss link lists paste searchreplace stripnbsp tabfocus table visualblocks visualchars',
<?php $this->endblock(); ?>
<?php $this->block('valid_elements'); ?>
extended_valid_elements: 'q[cite|class|title],article,section,hgroup,figure,figcaption',
<?php $this->endblock(); ?>
<?php $this->block('menubar'); ?>
menubar: 'file edit insert view format table',
<?php $this->endblock(); ?>
<?php $this->block('toolbar'); ?>
toolbar: 'link unlink | image | bold italic | styleselect | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | undo redo | code',
<?php $this->endblock(); ?>
<?php $this->block('cache_suffix'); ?>
cache_suffix: '?v=<?= $this->assetVersion('js/tinymce.min.js', 'contao-components/tinymce4') ?>',
<?php $this->endblock(); ?>
<?php $this->block('custom'); ?>
plugins: 'autosave charmap code fullscreen image importcss link lists paste searchreplace stripnbsp tabfocus table visualblocks',
browser_spellcheck: true,
tabfocus_elements: ':prev,:next',
importcss_append: true
};
<?php if ( \version_compare(VERSION,'4.9','<=') ): ?>
options.skin = "contao";
<?php endif; ?>
options.importcss_groups = [{title: 'cto_layout/css/tinymce.css'}];
options.content_css = '<?= Config::get('uploadPath'); ?>/cto_layout/css/tinymce.css';
window.tinymce && tinymce.init(options);
</script>
<?php endif; ?>
– Meine Contao Version 4.13.36

Kommentar