Happy New Year!

Happy New Year Everyone!!

You might have been asking where I went, well rest assure I'm still around. I've been completely swamped with projects and as I wrap one up another seems to start. I'm starting to see the light at the end of the tunnel, but I think I'm still a couple of weeks away from some freedom.

In the meantime, how about a little present? Maybe CJ File Browser v2.0 (Beta)!!!

Thought you might like that. I've had this for awhile, but I just didn't have the time to clean up the documentation, comments etc. But I'll let you play with it and let me know if you come accross any problems.

The big change, that I've made this into a tinyMCE plug-in.

Download here: CJ File Browser

P.S. It's a ColdFusion File Browser for tinyMCE, in case you didn't know.

4 responses to "Happy New Year!"

alberto
Hey, great tool! I wanted to implement this on one of my websites, but use it for pdf uploads. Also, is it possible to leave a link for it in the textarea, similar to the tinyMCE insertfile button? Thanks in advance.
-albertoq
Doug
Doug responds:
@Alberto

I'm sure it can be done, but again, this is meant to be a starter file, not a final solution. The main goal for this, is so you can see how things are done and then make it do whatever you want! :-) Hope it helps.

-Doug
George
Hi Doug great product. I need to be able to upload to more than one source at a time. Any thoughts on the difficulties in doing this? I also have one other question. I took your code and modified it a little for the init of TinyMCE. My span classes are getting stripped off and they are in the style sheet list. <span class="q">hello</span><span class="e">Goodbye</span> The class q is totally removed. How can I stop that from happening?
Doug
Doug responds:
@George - For multiple uploads, you would need to create multiple file fields and then loop through each field to upload them. I've done this on a few projects in the past, but it gets tricky because you never know the size of the files the user is going to upload, so you can run into a "request timeout" error. You basically still treat the multiple files as a single upload through the loop, if that makes sense.

As for the span problem, thats most likely is a setting in tinyMCE. I believe there's a "strip_spans" setting, or maybe its "paste_strip_class_attributes". Can't remember off the top of my head, but I my script shouldn't be doing that. Hope that helps.
Joey
Joey says:
Doug - This thing is great! I was looking for a solution to upload images within tinyMCE without having to do the leg work. I also like the way you present the images that are in the directory as well. This way I can stack the directory with existing files using the back end without having the end user upload all the images. I came across something that may or may not interest you when debugging. It's in tinyMCE (I think). When deleting a file that is in use on a page with your delete function it breaks the JavaScript and redirects the user to the image upload page.

@George and Doug - http://www.opensourcecf.com/cffm/
This can be used for mulitple file uploads. Integrating it with tinyMCE is not as easy as this though. Doug is right though. Make sure you have admin access to CF for timing out. Also you may want to incorporate script that resizes the images if doing so. I use this on some of my applications but found that this plugin is just better for most end users!

Again, thanks Doug!
Doug
Doug responds:
@Joey - Glad you like it. Again, this really isn't a final solution, it's meant to help everyone learn how to do it. I'm glad you enjoy it and I will take a look at the timeout issue.

Also, I am making a completely re-vamped version of this thing, but I need to wrap up a couple of my projects before I can get back to it.
Joey
Joey says:
The "timing out" is not an issue for me. I was just referencing for George's comment to try and help him. I took what you have created and applied it to do exactly what I need it to do. Again, great tool. You're listed in my favorites now! Looks like you will be saving me a lot of programming time!! Thanks again!!

Have something to say? Leave a comment!

You don't have to be registered to leave a comment. Unregistered user's comments will be approved before going live.




You are currently posting as an unregistered user.
This means that your comment will be reviewed prior to going live. If you are a registered user, please . New user? No problem, register for an account, it's FREE! Benefits include, posting instantly, screen name protection, collaboration recognition, subscribe to article updates, and so much more!