scheint ja wirklich ein exotenproblem zu sein!? seit 4 tagen haben 55 leute den thread aufgerufen und niemand hat geantwortet!
was mach ich jetzt? hat auch niemand einen hinweiss, wo ich denn ansetzen sollte?
hier mein bearbeitetes tinymce.tpl.html:
Code: Alles auswählen
<script language="javascript" type="text/javascript">
var fb_fieldname;
var fb_handle;
var fb_intervalhandle;
var fb_win;
function myCustomFileBrowser(field_name, url, type, win) {
switch (type)
{
case "image":
fb_handle = window.open("{IMAGEBROWSER}", "filebrowser", "dialog=yes,resizable=yes");
fb_fieldname = field_name;
fb_win = win;
fb_intervalhandle = window.setInterval("updateImageFilebrowser()", 250);
break;
case "file":
fb_handle = window.open("{FILEBROWSER}", "filebrowser", "dialog=yes,resizable=yes");
fb_fieldname = field_name;
fb_win = win;
fb_intervalhandle = window.setInterval("updateImageFilebrowser()", 250);
break;
case "flash":
fb_handle = window.open("{FLASHBROWSER}", "filebrowser", "dialog=yes,resizable=yes");
fb_fieldname = field_name;
fb_win = win;
fb_intervalhandle = window.setInterval("updateImageFilebrowser()", 250);
break;
default:
alert(type);
break;
}
}
function updateImageFilebrowser ()
{
if (!fb_handle.left)
{
return;
}
if (!fb_handle.left.left_top)
{
return;
}
if (!fb_handle.left.left_top.document.getElementById("selectedfile"))
{
return;
}
if (fb_handle.left.left_top.document.getElementById("selectedfile").value != "")
{
fb_win.document.forms[0].elements[fb_fieldname].value = fb_handle.left.left_top.document.getElementById("selectedfile").value;
fb_handle.close();
window.clearInterval(fb_intervalhandle);
if (fb_win.showPreviewImage)
{
fb_win.showPreviewImage(fb_win.document.forms[0].elements[fb_fieldname].value);
}
}
}
tinyMCE.init({
mode : "exact",
elements : "{EDITORNAME}",
language : "{EDITORLANG}",
width : "{EDITORWIDTH}",
height : "{EDITORHEIGHT}",
plugins : "{EDITORPLUGINS}",
theme : "advanced",
theme_advanced_buttons1 : "{BUTTONS1}",
theme_advanced_buttons2 : "{BUTTONS2}",
theme_advanced_buttons3 : "{BUTTONS3}",
theme_advanced_styles : "{ADVANCED_STYLES}",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "{TOOLBAR_ALIGN}",
theme_advanced_path_location : "bottom",
directionality : "{DIRECTIONALITY}",
document_base_url : '{DOCUMENTBASEURL}',
remove_script_host : false,
content_css : "{CSSURL}",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
valid_elements : "{VALID_ELEMENTS}",
extended_valid_elements : "{EXTENDED_VALID_ELEMENTS}",
/* do not remove the # char */
external_link_list_url : "{EXTERNAL_LINK_LIST}",
external_image_list_url : "{EXTERNAL_IMAGE_LIST}",
flash_external_list_url : "{EXTERNAL_FLASH_LIST}",
file_browser_callback : "myCustomFileBrowser",
plugin_insertdate_dateFormat : "{INSERTDATE_DATEFORMAT}",
plugin_insertdate_timeFormat : "{INSERTDATE_TIMEFORMAT}",
relative_urls : false,
convert_urls : false,
{CLEANUPCALLBACK}
urlconverter_callback : "CustomURLConverter"
});
function CustomfileBrowserCallBack(field_name, url, type) {
// This is where you insert your custom filebrowser logic
alert("Filebrowser callback: " + field_name + "," + url + "," + type);
}
function CustomURLConverter(url, node, on_save) {
url = TinyMCE.prototype.convertURL(url, node, on_save);
return url;
}
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>
<!-- /tinyMCE -->
bitte helft mir doch!