PHP-Code:
<script>
setTimeout(function() {
window.tinymce && tinymce.init({
skin: 'contao',
selector: '#ctrl_text',
language: 'de',
element_format: 'html',
document_base_url: 'http://xxxxx.xx/',
entities: '160,nbsp,60,lt,62,gt,173,shy',
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(); });
},
file_browser_callback: function(field_name, url, type, win) {
Backend.openModalBrowser(field_name, url, type, win);
},
templates: [
{ title: "index.html", url: "files/tiny_templates/index.html" }
],
plugins: 'autosave charmap code fullscreen image importcss link lists paste searchreplace tabfocus table template visualblocks',
browser_spellcheck: true,
tabfocus_elements: ':prev,:next',
importcss_append: true,
importcss_groups: [{title: 'files/tinymce.css'}],
content_css: '/system/themes/tinymce.css,/files/tinymce.css',
extended_valid_elements: 'q[cite|class|title],article,section,hgroup,figure,figcaption',
menubar: 'file edit insert view format table',
toolbar: 'link unlink | image | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | undo redo | code'
});
}, 0);
</script>
Lesezeichen