FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

Frog's TinyMCE with Image file manager -> Sweet!

Feed 14 posts, 5 voices

Avatar
0 posts

Hello everyone,
Yesterday I merged phpletter.com ajax file manager with tiny mce with the one provided with Frog.

The result is a new window that allows you to upload, delete, move, rename any files in the public directory.
You can select the image to insert in your page directly from the thumbnail.

You can download the new tiny mce plugin here and replace the one you have already in frog cms.

You should get something like this

and this

Please not that while doing this, some fields in the configuration page provided with frog’s tiny mce are obsolete. I didn’t take the time to clean the plugin out. I’ve tested it on two different sites and servers and it works great on both.

Also, please note that I did not develop this plugin, credits go to Martijn van der Kleijn, the tiny mce team and the phpletter.com team. I only took both pieces and merged them into one powerful tool.

Hope you enjoy it! Cheers

 
Avatar
1 posts

Nice job! I’ve been waiting for someone to come out with something like this.

Any chances of integrating this into the WYMeditor as well?

 
Avatar
9 posts

Hello, Steven. Your plugin is really nice! Very usefull. I have installed your plugin but there is one problem: When i add image via ajax uploader there is no image in my website. In HTML code i see that the path to image is “../../../public/images”, how can i solve this problem? I need that this path would be “public/images” ???
Sorry for my english

 
Avatar
16 posts

Where do you see this path exactely ? in the HTML or in the Image pop up box.
If it’s the image pop up box, it’s normal… when you hit “OK” the image should appear with the correct path.

Do you have a demo somewhere so I can try it.

The plugin always refer to the public folder no matter what.

 
Avatar
9 posts

http://itmarks.lt/itcontent/about_us – there should be an image. Look at the source (<img height=“318” width=“568” border=“0” src=”../../../public/images/cms.jpg”>). There should not be ../../../ before public directory.

 
Avatar
16 posts

bizare….

the path in the plugin is relative to the plugin file so it’s the same for everyone no matter the configuration unless the plugin isn’t installed correctly.

When you use the pop up file manager, do you see the image in the preview box ?
Do you see the image in the editing window ?

Can you create a temporary account for me to take a look at the admin console ?

 
Avatar
9 posts

Yes, Steven-b, i see image correctly at the ajax file manager box.
I have created account for you.
http://itmarks.lt/itcontent
login name: stevenb
pwd: stevenb

 
Avatar
16 posts

I’m not sure the problem comes from the add on.
On the sites that I have used the plugin, I also get the ../../../ in the HTML yet my pictures still show up properly.

At first I thought that it was because you’re root directory in tinymce’s configuration was incorrect, but still, when I fixed it, the image still didn’t show up.

Because I didn’t code this plugin myself… just merged 2 codes, I can’t really help debug it since I know just as much as you do.

I see no difference in what I have setup. And I used this plugini on 5 completely different servers.
I’m sorry I’m not a better help for you. :(

 
Avatar
9 posts

Thanks anyway, steven-b. Maybe someone will help me???

 
Avatar
9 posts

Problem solved.
In the file called tiny_init.php at line 43 just insert – relative_urls : false,
Code should look like this:

apply_source_formatting : true, force_br_newlines : true, force_p_newlines : false, relative_urls : false,

 
Avatar
16 posts

Cool! Good job!

 
Avatar
2 posts

I cannot get this working and I think it has to do with the FROG_ROOT variable but i’m not sure. When I load the image selector everything works and I can browse and pick the image I want, then when I hit “Select” it puts this in for the path:
http://www.domain.com/var/www/html/public/images/gator.jpg

When it needs to put in:
http://www.domain.com/new/public/images/gator.jpg

Any help on fixing this would be greatly appreciated.

 
Avatar
16 posts

I don’t think the problem comes from the addon to the plugin but from the plugin itself.

In tiny_init.php play around with :

relative_urls : false,
document_base_url : “/”,

Uncomment the document_base… maybe that will fix it.

 
Avatar
2 posts

Thanks for the suggestion steven-b but it didn’t fix the issue.

 
Avatar
9 posts

stinn, it’s probably because relative urls. Try to add correct paths at tinymce plugin configuration. You can see tinymce plugin documentation if you don’t know what meens correct paths.