When I set oFCKeditor.Config['ImageBrowserURL'] in my index page where my FCK is placed. The message "XML request error: Forbidden (403)" appears when I open "Server Browser" in Insert Image/Image Properties.
Anybody have any idea?
Anybody have any idea?
window.onload = function() { // Automatically calculates the editor base path based on the _samples directory. // This is usefull only for these samples. A real application should use something like this: // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. var sBasePath = '/plugins/fckeditor/' ; var oFCKeditor = new FCKeditor( 'body' ) ; oFCKeditor.BasePath = sBasePath ; sServerPath = {$form->getInlineImageFolderPath()}'; sCurrentFolder = sServerPath; oFCKeditor.Config['ImageBrowserURL'] = sBasePath + "editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php&ServerPath=" + sServerPath + "&CurrentFolder=" + sCurrentFolder; oFCKeditor.ReplaceTextarea() ; }
RE: XML request error: Forbidden (403)
I think that maybe editor is occuring twice. To check what you need to do is print oFCKeditor.Config['ImageBrowserURL'] to the screen and then type it into your url and make sure that it actually goes to browser.html.
Can you tell me if this works for you and also can you tell me if your queries got sent. Because my queries didn't get sent everything that had and "=" or an "&" after it went no where. I worked out a fix for this though.
youbet