Habe die Mandanteneinstellungen vorgenommen und jetzt erscheint statt dem Media-Plugin das Flash-Plug. Der Javasrcipt-Fehler ist schon einmal verschwunden. Einzig das Problem mit der falschen Codekonvertierung (Wandlung des SFW-Codes als Bildcode) ist geblieben. Hier mal der neue Code der Editorseite:
Code: Alles auswählen
function CustomCleanupContent(type, value) {
switch (type) {
case "get_from_editor":
case "insert_to_editor":
// Remove xhtml styled tags
value = value.replace(/[\s]*\/>/g,'>');
break;
}
return value;
}
</script>
<!-- Needs to be seperate script tags! -->
<script language="JavaScript" type="text/javascript">
tinyMCE.init({
'cleanup': true,
'content_css': 'http://www.happy-hotstock.de/css/style_tiny.css',
'extended_valid_elements': '*[*]',
'plugins': 'table,save,advhr,advimage,advlink,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu,paste,directionality,fullscreen,inlinepopups',
'theme_advanced_buttons1': 'cut,copy,paste,pastetext,pasteword,separator,search,replace,separator,undo,redo,separator,bold,italic,underline,strikethrough,sub,sup,separator,insertdate,inserttime,preview,separator,styleselect',
'theme_advanced_buttons2': 'link,unlink,anchor,image,flash,advhr,separator,bullist,numlist,separator,outdent,indent,separator,justifyleft,justifycenter,justifyright,justifyfull,removeformat,separator,forecolor,backcolor,separator,ltr,rtl,separator,fullscreen,visualaid,charmap,cleanup,separator,code',
'theme_advanced_buttons3': 'tablecontrols,separator,formatselect,fontselect,fontsizeselect',
'valid_elements': '*[*]',
'mode': 'exact',
'theme': 'advanced',
'theme_advanced_toolbar_location': 'top',
'theme_advanced_path_location': 'bottom',
'remove_script_host': false,
'file_browser_callback': 'myCustomFileBrowser',
'urlconverter_callback': 'CustomURLConverter',
'apply_source_formatting': true,
'remove_linebreaks': false,
'convert_urls': true,
'relative_urls': true,
'elements': 'CMS_HTML',
'language': 'de',
'document_base_url': 'http://www.meine-domain.de/',
'cleanup_callback': 'CustomCleanupContent',
'width': '100%',
'height': '480px',
'directionality': 'ltr',
'theme_advanced_toolbar_align': 'left',
'plugin_insertdate_dateFormat': '%Y-%m-%d',
'plugin_insertdate_timeFormat': '%H:%M:%S',
'contenido_background_color': 'white',
'article_url_suffix': 'front_content.php?idart=46'
});
</script>
<!-- /tinyMCE -->