HTML-Code:
<script>
window.tinymce && tinymce.init({
selector: '#ctrl_text',
min_height: 336,
language: 'de',
element_format: 'html',
document_base_url: 'http://neu.grolle-kleinmueller.de/',
entities: '160,nbsp,60,lt,62,gt,173,shy',
branding: false,
setup: function(editor) {
editor.getElement().removeAttribute('required');
document.querySelectorAll('[accesskey]').forEach(function(el) {
editor.addShortcut('access+' + el.accessKey, el.id, function() { el.click(); });
});
},
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(); });
},
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]=tl_content.1843&value=' + value + '&popup=1',
'callback': function(table, val) {
callback(val.join(','));
}
});
},
file_picker_types: ["image","file"],
XXXXX content_css: "system/themes/flexible/tinymce.min.css',
,//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css",XXXXX
plugins: "autosave charmap code fullscreen image importcss link lists paste searchreplace stripnbsp tabfocus table visualblocks visualchars',
noneditable fontawesome",
extended_valid_elements: "q[cite|class|title],article,section,hgroup,figure,figcaption',
,span[*]",
menubar: 'file edit insert view format table',
contextmenu: false,
cache_suffix: '?v=5.10.7',
browser_spellcheck: true,
tabfocus_elements: ':prev,:next',
importcss_append: true,
toolbar1: 'link unlink | image | formatselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | code',
toolbar2: " fontawesome |",
noneditable_noneditable_class: "fa",
});
</script>