1
hervet
[SOLVED] Problem with Tinyeditor and pictures URLs
  • 2007/10/8 15:13

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hello,

I have a problem with TinyEditor, when I put a picture in the text with its image manager, the path to the url is not fully qualified.

For example, with a site installed here :
http://localhost/mysite
and picture located in uploads/mypicture.png

the editor calls the image like this :
img src="/mysite/uploads/mypicture.png"

when it should be :
img src="http://localhost/mysite/uploads/mypicture.png"

(note, I have remove the lower and greater signs)

Anybody saw a problem like this ?

Hervé

2
irmtfan
Re: Problem with Tinyeditor and pictures URLs
  • 2007/10/8 16:44

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


i played with this editor a while ago.
it has 3 image managers.
1. XOOPS image manager
2. Tool image ( from MCE editor)
3. advance Tool image ( from MCE editor)

i just test MCE mangers now try to test XOOPS manager.

3
frankblack
Re: Problem with Tinyeditor and pictures URLs
  • 2007/10/8 17:12

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Not the only bug I guess. Look up THIS section URL

Edit include/initcode.php and replace the following line:

echo 'convert_urls : true,';


with this:

echo 'convert_urls : false,';


This should work? I guess this was the place where I forgot to take this into consideration when converting URLs where needed.

HTH

4
hervet
Re: Problem with Tinyeditor and pictures URLs
  • 2007/10/8 17:13

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


sorry.
I'm using the button which calls the XOOPS image manager, the stamp. But in fact it's calling its own windows which mimics the XOOPS images manager.

EDIT.
EXCELLENT !
It has solved the problem.

Thank you very much Frank !

5
frankblack
Re: Problem with Tinyeditor and pictures URLs
  • 2007/10/8 17:19

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


I added the XOOPS imagemanager, because as a fallback, if every other image manager fails due to different browser behaviour and interpretation of javascript. ibrowser and imanager are not working with Opera so thats why.

Edit
@hervet: glad to hear that. I do hope that ralf57 will soon publish a new version of tinyeditor, so that we can get rid of my crappy version.

6
hervet
Re: Problem with Tinyeditor and pictures URLs
  • 2007/10/8 17:22

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


I don't really know the other images manager but the XOOPS image manager has an advantage, it can verify the dimensions of your pictures, and on small themes, it's really useful.

TinyEditor is an excellent editor and making "something" like this is an exploit.

Thanks again Frank !

Login

Who's Online

330 user(s) are online (259 user(s) are browsing Support Forums)


Members: 0


Guests: 330


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits