Log in or register to post comments
Last post
ImagePaste plugin for Firefox
Since Firefox 4.0, when the user pastes an image from the clipboard on CKEditor it's automatically inserted as a data: URI, that means several things:
It allows other people to see the image (previously it inserted a link to a local file that only worked for that user). This is good.
But there are at least two drawbacks: The image data is inserted into the body, that means a huge increase in size and every reload of the page doesn't use a cached version of the image. Also, old versions of some browser that we should not name aren't able to understand data: url.

This plugin solves those problems: when such an image is pasted it's saved as a new file at the server and that url is used instead of the huge data:

License
Licensed under the terms of any of the following licenses at your choice: GPL, LGPL and MPL.

Download
ImagePaste version 1.0:
download link

Installation
1. Extract the contents of the file into the "plugins" folder of CKEditor.
2. In the CKEditor configuration file (config.js) add the following code:
config.extraPlugins = 'imagepaste';

3. Set an upload Url for images (just like you might have already done for uploads in the image dialog)

All the details and options are explained in the included install doc.

Updated version
I improved the basic plugin including the detection of pasted images in Chrome as well as dropped files in most modern browsers (Opera 12 excluded).
This version (2.1 at the moment) is not open source, so you must get a license to use it. You can test it to verify that your browser is correctly supported.
Re: ImagePaste plugin for Firefox
There is another disadvantage of the original image-inserting feature of Firefox: when the image is presented in the browser, the context-menue - "Show Image" loads the image and the URL of that image is the data:image/png;base64....................

by that you create the longest URLs ever ;=)

unfortunately your installation description is not clear enough.

You have to configure the filebrowserImageUploadUrl entry as you might have already done to allow the user to upload images.


???? please explain that your plugin depends on the filebrowser-plugin and how to configure that.
As you add a "doc", it might not be too difficult for you to extend this info ;=)
Re: ImagePaste plugin for Firefox
Connie wrote:
unfortunately your installation description is not clear enough.

You have to configure the filebrowserImageUploadUrl entry as you might have already done to allow the user to upload images.


???? please explain that your plugin depends on the filebrowser-plugin and how to configure that.
As you add a "doc", it might not be too difficult for you to extend this info ;=)

If you are already allowing your users to upload images, then you should have already configured the filebrowser and upload parameters and then this plugin will work automatically.
Anyway, it's already explained here: http://docs.cksource.com/CKEditor_3.x/D ... ploader%29 (and in lots of other pages and docs if you search how to upload files with CKEditor). I don't think that I would be able to explain that any better that it already is.

Trying to allow the user to upload pasted files with Firefox, before allowing to upload files with any browser at their will seems quite weird to me.
Re: ImagePaste plugin for Firefox
Trying to allow the user to upload pasted files with Firefox, before allowing to upload files with any browser at their will seems quite weird to me.


you have always to count with non-experienced users, so it could be helpful to list some basic requirements
innocent newbies like me did expect that your plugin includes the uploading functionality

I am sorry that I am not so experienced
Re: ImagePaste plugin for Firefox
So you want me to include in this plugin upload funcionality for php 4, php 5, asp.net, cfm, python, classic asp. Saving to the file system, to a database and anything else in between
Integrated with whatever user authentication system you might have.

Just because you want to setup pasting & automatic upload of files before allowing to upload files in the normal way???

Any new user of anything should always start with the basic product, if he tries to add plugins and special customizations before understanding the basic is doomed to fail and we can't help you.
Re: ImagePaste plugin for Firefox
If I have not ckfinder2, will not be able to use this plugin, is it?
Re: ImagePaste plugin for Firefox
No, you can use it with any other uploader as long as it provides an option to do a "direct upload" like the Upload tab of the image dialog.
If you only have a "browse" option then I just can't know where should I POST the file.
Re: ImagePaste plugin for Firefox
alfonsoml wrote:So you want me to include in this plugin upload funcionality for php 4, php 5, asp.net, cfm, python, classic asp. Saving to the file system, to a database and anything else in between ....


I was just humbly asking asking to inform that your plugin does not include upload-functionality and that there must be a file uploading plugin already

nothing more and I do not understand why you react so arrogant :cry:
Re: ImagePaste plugin for Firefox
I have published a non-open source version that adds drag&drop image uploads. You can get it as described in this post, but the very first step is to have this simpler version working.

If you're unable to add the plugin to your setup or you don't know how to configure the file uploads then the plugin won't work.
Re: ImagePaste plugin for Firefox
You can use CKFinder or your own uploader, in this post I explained the main points (that should be enough as long as you know how to code in PHP), and of course, you can always read more.
Re: ImagePaste plugin for Firefox
Is there any tutorial on how to configure the file uploads?
Re: ImagePaste plugin for Firefox
Sorry I forget , can you give me your Yahoo ID ?
Re: ImagePaste plugin for Firefox
laptrinhwebqq wrote:Is there any tutorial on how to configure the file uploads?

Is this a trick question?

Have you checked the post that is just above yours?

And no, sorry, I don't have a Yahoo ID.