Index: branches/RC/core/editor/editor/plugins/MyPreview/fckplugin.js =================================================================== diff -u -r10974 -r11760 --- branches/RC/core/editor/editor/plugins/MyPreview/fckplugin.js (.../fckplugin.js) (revision 10974) +++ branches/RC/core/editor/editor/plugins/MyPreview/fckplugin.js (.../fckplugin.js) (revision 11760) @@ -7,18 +7,18 @@ { initXmlHTTP(); xmlHTTP.onreadystatechange = OnGetAnswerPost; - + // the path is NOT /admin, otherwise content will be stored in admin session ! - xmlHTTP.open("POST", FCKConfig.ProjectPath+'index.php?env=-dummy:st--OnUpdatePreviewBlock---&admin=1&ajax=yes', true); - xmlHTTP.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - xmlHTTP.send("&preview_content="+escape( FCK.GetXHTML() )+"&st_event=OnUpdatePreviewBlock"); -} + xmlHTTP.open('POST', FCKConfig.ProjectPath+'index.php?t=dummy&events[c]=OnUpdatePreviewBlock&ajax=yes', true); + xmlHTTP.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); + xmlHTTP.send('&preview_content=' + encodeURIComponent(FCK.GetXHTML())); +} MyPreviewCommand.prototype.GetState = function() { return FCK_TRISTATE_OFF; } - + function initXmlHTTP(){ //if (xmlHTTP) return; try {