Hello,
1.- I have the following directory structure for the images:
images/en/articles
images/en/graphics
images/es/articulos
images/es/graficos
All directories have the same permissions setup.
2.- I configure CKeditor (3.3.1) inline in the textarea in this way:
<td><textarea id="articulos1imagen_portada" rows="5" cols="80" name="{imagen_portada_Name}">{imagen_portada}</textarea> <script type="text/javascript"> //<![CDATA[ CKEDITOR.config.language = '{res:CKeditorLang}'; CKEDITOR.replace( 'articulos1imagen_portada', { filebrowserBrowseUrl : 'afm/ajaxfilemanager/ajaxfilemanager.php', skin : 'office2003', toolbar : [ ['Image','-','Flash','-','Source','-','Undo','Redo'] ] }); //]]> </script> </td>
I pass to CKeditor the language through my translation variables: '{res:CKeditorLang}'
It changes buttons language very nice, but when I insert an image from the directory:
images/es/articulos
3.- The Problem: The CKeditor changes the URL of the image from:
http://www.mywebsite/images/es/articulos/image_name.jpg
to:
http://www.mywebsite/images/es/es_articulos/image_name.jpg
It is changing the name of the last directory and only for images/es/articulos, for the other directories it do not change them (?). This is very confusing because I manually edit the URL via HTML Source and when I save the information, CKeditor changed it again form /articulos/ to /es_articulos/, what can I do?.
4.- Is this a bug or a configuration problem?
I appreciate a lot your kind help, I looked into the forum and in Google and I was not able to find a solution, please help.
Best regards
joejac
Re: Altering image URL, Is this a bug or configuration probl
Re: Altering image URL, Is this a bug or configuration probl
I suspected that too, but as I mentioned above, I manually edit the URL via HTML Source inside the textarea field with CKeditor and when I save the information, CKeditor changed it again form /articulos/ to /es_articulos/. I guess now I am not in the File Manager but inside CKeditor and CKeditor should let me alter the HTML code if I switch to "Source" view, is this right?, FCKeditor worked that way with no problem.
Thanks a lot for any other information,
Regards
joejac
Re: Altering image URL, Is this a bug or configuration probl
Re: Altering image URL, Is this a bug or configuration probl
Hello and thanks comp615,
I downloaded ckeditor_3-1.3.2 and with same configuration I noticed that the File Manager writes the path correctly, testing in my localhost, this is the code inside CKeditor textarea:
Is fine and the images are seen correctly, but then I save all the fields, including the textarea, to the database and click on the article again and I see this:
It seems to me that something in CKeditor is modifying the last directory when detecting the change in language, for the directory articulos. I also noticed that when saving several times CKeditor inject each time an additional: "es_" in the path like this: "/es_es_es_articulos/"
Then I modified with phpMyAdmin, opened with the CKeditor and all the images have the correct path including "http://localhost/mywebsite/imagenes/es/articulos/MenuImagen.jpg" but as soon as I save it through the page with CKeditor and open it again I see the incorrect path only for images inside directory /articulos/: "http://localhost/mywebsite/imagenes/es/es_articulos/MenuImagen.jpg"
If a developer wants to see the problem I can provide with an URL, id and password to enter and test. I double checked the html code that my application pass to CKeditor and it is fine as you can see here, spanish is being passed as 'es':
Thanks in advance for all your help because this is the last thing and as soon as it works I am done.
Best regards
joejac
Re: Altering image URL, Is this a bug or configuration probl
Re: Altering image URL, Is this a bug or configuration probl
Hello comp615,
Thanks a lot for your reply, you were right, I had a problem with the way my PHP script wrote to the MySQL database, I corrected and it is working good. It is very nice to see how easy is to setup CKeditor compared to the predecessor.
Best regards
joejac