I've got some problems with getting the filebrowser to work in php.
All I do to use FCKedito is put this line in the header:
<script type="text/javascript" src="/1/lib/fckeditor/fckeditor.js"></script>
and this at the bottom of my page:
<script type="text/javascript">
var sBasePath = '/1/lib/fckeditor/';
var oFCKeditor = new FCKeditor( 'doc_text' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Height = 100 ;
oFCKeditor.Width = 900 ;
oFCKeditor.ReplaceTextarea() ;
</script>
pretty simple, all it has to do is replace the text field doc_text with the editor. That works fine, but I run into trouble when I want to insert a image.
As soon as I open the file browser I get "The server didn't send back a proper XML response"
The problem is right in the next line, because it shows that the requisted line is /fckeditor/editor/filemanager/browser/default/connectors/asp/.....
The problem is that I use PHP, not ASP. To resolve the problem I alttered these two lines in my fckconfig.js:
var _FileBrowserLanguage = 'php' ;
var _FileBrowserExtension = 'php';
That didn't help, actually, nothing I altered in that file did anything, I could even delete it, and the editor was still working the same way.
After that I tried to do it this way, I added this line to my php file:
oFCKeditor.Config["CustomConfigurationsPath"] = "/1/lib/fckeditor/myconfig.js" ;
in myconfig.js I placed the two lines I mentioned above, but one again, no luck.
After that I tried just to place these two lines in my php file:
oFCKeditor.FileBrowserLanguage = 'php' ;
oFCKeditor.FileBrowserExtension = 'php';
But that didn't do anything either. I still see that it's trying to reach that asp connector.
Any ideas how to solve this problem?
All I do to use FCKedito is put this line in the header:
<script type="text/javascript" src="/1/lib/fckeditor/fckeditor.js"></script>
and this at the bottom of my page:
<script type="text/javascript">
var sBasePath = '/1/lib/fckeditor/';
var oFCKeditor = new FCKeditor( 'doc_text' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Height = 100 ;
oFCKeditor.Width = 900 ;
oFCKeditor.ReplaceTextarea() ;
</script>
pretty simple, all it has to do is replace the text field doc_text with the editor. That works fine, but I run into trouble when I want to insert a image.
As soon as I open the file browser I get "The server didn't send back a proper XML response"
The problem is right in the next line, because it shows that the requisted line is /fckeditor/editor/filemanager/browser/default/connectors/asp/.....
The problem is that I use PHP, not ASP. To resolve the problem I alttered these two lines in my fckconfig.js:
var _FileBrowserLanguage = 'php' ;
var _FileBrowserExtension = 'php';
That didn't help, actually, nothing I altered in that file did anything, I could even delete it, and the editor was still working the same way.
After that I tried to do it this way, I added this line to my php file:
oFCKeditor.Config["CustomConfigurationsPath"] = "/1/lib/fckeditor/myconfig.js" ;
in myconfig.js I placed the two lines I mentioned above, but one again, no luck.
After that I tried just to place these two lines in my php file:
oFCKeditor.FileBrowserLanguage = 'php' ;
oFCKeditor.FileBrowserExtension = 'php';
But that didn't do anything either. I still see that it's trying to reach that asp connector.
Any ideas how to solve this problem?
Re: using the filebrowser with php
Re: using the filebrowser with php
Re: using the filebrowser with php
Does anyone have a copy of the previous release that i could grab? Apparently this wasn't an issue before from what I'm reading in the forums. I really need to get this working until someone can issue a fix on this version. I have 2.4.3
Thanks
Re: using the filebrowser with php
This is a bug on 2.4.3... php is ignored completly and defaults do ASP connector
Re: using the filebrowser with php
It's just that you haven't set it up properly and/or cleared your cache.
Re: using the filebrowser with php
Re: using the filebrowser with php
Of course there is a solution for this problem:
and, as Alfonso mentioned already, make sure that you cleared your browser cache.
read documentation: http://wiki.fckeditor.net/Developer's_G ... ration/PHP
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: using the filebrowser with php
I did each step of the documentation and cleared my cache... but the probleme is always the same...
Re: using the filebrowser with php
have you try to add:
var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | php
in your fckconfig,js ... it might solve the problem
Re: using the filebrowser with php
YES, YES, I HAVE REFRESH THE CACHE,
YES, YES I HAVE CHECKED ALL CONFIGURATION FILES
please check that up.
Re: using the filebrowser with php
I have this same problem ...

try this ... in file editor/filemanager/browser/default/connectors/php/utils.php find function ConvertToXmlAttribute() and change
function ConvertToXmlAttribute( $value )
{
return htmlspecialchars( $value ) ;
}
to (like in previous versions
function ConvertToXmlAttribute( $value )
{
return utf8_encode( htmlspecialchars( $value ) ) ;
}
Re: using the filebrowser with php
Re: using the filebrowser with php
hey man, where is the idea?????!!!!
Re: using the filebrowser with php
Hi guys, about the problem of
that faces many of guys (like me), I've just solved it?!
How: my scenario is as following:
HOMEDIR: http://localhost/testsite/testdir/
And files for FCKeditor was in the HOMEDIR (not in /fckeditor like many of you do).
What I did first I write the settings like this:
i.e. the full path to the config as you type it in the browser, and after I ran the page containg the FCKeditor:
I got error about xml file for styles is can't be loaded, and it given me that the path is looking for at:
http://localhost/testsite/testdir/editor
so all what I did is to change:
which will look in the upper directory (the home dir), also you will need to do this for any path (or just write the full URL to that file)
Hope this help you guys!, and you're welcome for any questions