Page 2 of 3
Re: FCKeditor and images
Posted: Wed Jan 18, 2006 1:43 am
by Alfred
Hi,
I've solved my problem - for the moment - that way: put the TinyMCE-folder from the 0.10.4 release in the actual module folder. Install and select TinyMCE as WYSIWYG.
Let's see, how long it will last . . .
Re: FCKeditor and images
Posted: Wed Jan 18, 2006 5:51 am
by cyberman
Alfred wrote:
TinyMCE-folder from the 0.10.4 release
You can also found the last TinyMCE module from his
project homepage for now

.
Re: FCKeditor and images
Posted: Wed Jan 18, 2006 7:27 pm
by tamlyn
Problem not entirely solved. Although the url is now shown correctly in fckeditor as an absolute url (/files/images/image.jpg), it is shown on the page as a relative url (files/images/image.jpg). This causes a problem with the url rewriting scheme I am using in which /index.php?page=hello becomes /hello/
I've had a look through FCKeditorX.module.php but I suspect that is not the right place to look as the url is being stored correctly in the database but, for some reason, turned into a relative url at runtime.
EDIT: sorry, the url is NOT stored correctly in the database. It is converted to a relative URL at save-time. I had to turn FCK off in order to manually edit the source to display the correct url.
Re: FCKeditor and images
Posted: Wed Jan 18, 2006 10:39 pm
by megabob3
tamlyn wrote:
Problem not entirely solved. Although the url is now shown correctly in fckeditor as an absolute url (/files/images/image.jpg), it is shown on the page as a relative url (files/images/image.jpg). This causes a problem with the url rewriting scheme I am using in which /index.php?page=hello becomes /hello/
I've had a look through FCKeditorX.module.php but I suspect that is not the right place to look as the url is being stored correctly in the database but, for some reason, turned into a relative url at runtime.
EDIT: sorry, the url is NOT stored correctly in the database. It is converted to a relative URL at save-time. I had to turn FCK off in order to manually edit the source to display the correct url.

Re: FCKeditor and images
Posted: Wed Jan 18, 2006 10:58 pm
by tamlyn
megabob3 wrote:
Any ideas why the module is converting it to a relative path?
Re: FCKeditor and images
Posted: Wed Jan 18, 2006 11:23 pm
by megabob3
tamlyn wrote:
megabob3 wrote:
Any ideas why the module is converting it to a relative path?
Sorry read wrong, wait a response

Re: FCKeditor and images
Posted: Wed Jan 18, 2006 11:25 pm
by megabob3
I done right done this FIX
maybe resolve also your problem.
modify FCKeditorX.js
remove line 93 and 94.
are these:
regexp= new RegExp (REP, "gi");
newTag = newTag.replace(regexp,"");
remove this lines.
Bye

Re: FCKeditor and images
Posted: Wed Jan 18, 2006 11:34 pm
by megabob3
SVN is updated.
Can download it.
Sorry time ago, i worked hard for have RELATIVE path, and forgot to do not touch absolute PATH like url from external site.
Use FireFox, on IE have to fix other thing.
Sorry :/
Re: FCKeditor and images
Posted: Wed Jan 18, 2006 11:39 pm
by tamlyn
Cool - thanks bob! No need to apologise; I really appreciate your hard work and quick responses!
Re: FCKeditor and images
Posted: Thu Jan 19, 2006 12:01 am
by megabob3
tamlyn wrote:
Cool - thanks bob! No need to apologise; I really appreciate your hard work and quick responses!
FIXED into SVN the bug with IE
Thanks to you.
I have request for Sgal
I am working on galleryS

Re: FCKeditor and images
Posted: Thu Jan 19, 2006 1:46 pm
by tamlyn
Actually that doesn't seem to have fixed the problem either. I had to comment out line 111 in FCKeditorX.js (between alert 4 and alert 5 in preparaHTMLtoSave()) in order to get absolute paths to work. I don't know if that will have broken anything else.
Re: FCKeditor and images
Posted: Thu Jan 19, 2006 2:17 pm
by megabob3
tamlyn wrote:
Actually that doesn't seem to have fixed the problem either. I had to comment out line 111 in FCKeditorX.js (between alert 4 and alert 5 in preparaHTMLtoSave()) in order to get absolute paths to work. I don't know if that will have broken anything else.
No that line commented not affect on absolute, now you will not have RELATIVE path into LINK tag!
The problem was from alert 2 and alert 3.
Tonight i will look again, see you later

Re: FCKeditor and images
Posted: Thu Jan 19, 2006 2:20 pm
by megabob3
Re: FCKeditor and images
Posted: Thu Jan 19, 2006 2:51 pm
by tamlyn
megabob3 wrote:
Did you downloaded this: ... ?
Yeah, well I got the HEAD out of svn which i assume is the same thing...
megabob3 wrote:
No that line commented not affect on absolute, now you will not have RELATIVE path into LINK tag!
Which link tag? Actually I don't want *any* relative paths. All paths need to be absolute because of the rewrite rules. I don't know if my setup is especially weird but commenting out those lines really did seem to solve it. I've PMed you a login for the site in question if you want to do some tests or whatever.
Re: FCKeditor and images
Posted: Thu Jan 19, 2006 2:57 pm
by megabob3
tamlyn wrote:
megabob3 wrote:
Did you downloaded this: ... ?
Yeah, well I got the HEAD out of svn which i assume is the same thing...
megabob3 wrote:
No that line commented not affect on absolute, now you will not have RELATIVE path into LINK tag!
Which link tag? Actually I don't want *any* relative paths. All paths need to be absolute because of the rewrite rules. I don't know if my setup is especially weird but commenting out those lines really did seem to solve it. I've PMed you a login for the site in question if you want to do some tests or whatever.
Ok thanks
And with you are 5 login access
