Frog's TinyMCE with Image file manager -> Sweet!
|
0 posts
|
Hello everyone, The result is a new window that allows you to upload, delete, move, rename any files in the public directory. 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 |
|
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? |
|
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” ??? |
|
16 posts
|
Where do you see this path exactely ? in the HTML or in the Image pop up box. Do you have a demo somewhere so I can try it. The plugin always refer to the public folder no matter what. |
|
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. |
|
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 ? Can you create a temporary account for me to take a look at the admin console ? |
|
9 posts
|
Yes, Steven-b, i see image correctly at the ajax file manager box. |
|
16 posts
|
I’m not sure the problem comes from the add on. 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. |
|
9 posts
|
Thanks anyway, steven-b. Maybe someone will help me??? |
|
9 posts
|
Problem solved. apply_source_formatting : true, force_br_newlines : true, force_p_newlines : false, relative_urls : false, |
|
16 posts
|
Cool! Good job! |
|
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: When it needs to put in: Any help on fixing this would be greatly appreciated. |
|
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, Uncomment the document_base… maybe that will fix it. |
|
2 posts
|
Thanks for the suggestion steven-b but it didn’t fix the issue. |
|
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. |
