I have an issue though: I cannot insert any image into the TinyMCE editor in despite of I can succesfully browse (even edit) them through your PDW. It always complains on "Insert cancelled because there is no target to insert to!" (seems there is no "win" returned value).
I don't know if cross subdomain access is allowed by your tool but that's what I'm using: I developed a custom CMS hosted in "intranet.mydomain.com" which is calling a TinyMCE instance hosted in "www.mydomain.com". This is my piece of code:
<script language="JavaScript" type="text/javascript" src="http://www.mydomain.com/css_javascrt/tiny_mce/tiny_mce.js"></script>
<script language="JavaScript" type="text/javascript">
document.domain = "mydomain.com";
tinyMCE.init({
// General options
mode : "textareas",
language : "es",
theme : "advanced",
plugins : "safari, pagebreak, style, layer, table, save, advhr, advimage, advlink, emotions, iespell, inlinepopups, insertdatetime, preview, media, searchreplace, print, contextmenu, paste, directionality, fullscreen, noneditable, visualchars, nonbreaking, xhtmlxtras, template",
// Theme options
theme_advanced_blockformats : "p,h1,h2",
theme_advanced_text_colors : "006600,0b0c56,cc0000,000000,FFFFFF",
theme_advanced_buttons1 : "save,|,bullist,numlist,|,bold,italic,underline,|,style,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,forecolor,|,visualchars,nonbreaking",
theme_advanced_buttons2 : "cut,copy,paste,|,undo,redo,removeformat,|,link,unlink,image,cleanup,code,|,preview",
theme_advanced_buttons3 : "advhr,hr,sub,sup,|,charmap,|,fullscreen",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
file_browser_callback : "filebrowser",
content_css : "/css_javascrt/frameSimulate.css",
style_formats : [
{title:"Lista genérica", selector:"ul", classes:"listagral"},
{title:"Lista marrón", selector:"ul", classes:"listamarron"},
{title:"Verdana rojo 11", inline:"span", classes:"verdanarojo11"},
{title:"Verdana rojo 12", inline:"span", classes:"verdanarojo12"},
{title:"Verdana azul 11", inline:"span", classes:"verdanaazul11"},
{title:"Verdana azul 12", inline:"span", classes:"verdanaazul12"},
{title:"Enlace descarga", inline:"a", classes:"download"},
{title:"Bloque imágenes", block:"div", classes:"bloqueimg"}
],
});
function filebrowser(field_name, url, type, win) {
fileBrowserURL = "http://www.mydomain.com/css_javascrt/tiny_mce/plugins/pdw_file_browser/index.php?editor=tinymce&filter=" + type;
tinyMCE.activeEditor.windowManager.open({
title: "PDW File Browser",
url: fileBrowserURL,
width: 950,
height: 650,
inline: 0,
maximizable: 1,
close_previous: 0
},{
window : win,
input : field_name
});
}
</script>