qcy1121 / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
GNU General Public License v2.0
0 stars 0 forks source link

How do I use IMCE to add an image upload capability? #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Is it possible to use IMCE with jwysiwyg to make the image feature upload 
instead of having to 
type in a specific url?

If it is, can you post some specific instructions on how to do it?
IMCE has instructions for integration by URL but they don't make sense to me.

This is the instruction from IMCE:

~~~~~~~~INTEGRATION BY URL~~~~~~~

When IMCE is opened using an url that contains 
&app=applicationName|fileProperty1@FieldId1|fileProperty2@FieldId2|...
the specified fields are filled with the specified properties of the selected 
file.

Avaliable file properties are: url, name, size(formatted), width, height, 
date(formatted), 
bytes(integer size in bytes), time(integer date timestamp)

In our CASE, we should open IMCE using this URL: 
/?q=imce&app=myApp|url@urlField which 
contains our application name and our url field id

function openFileBrowser() {
  window.open('/?q=imce&app=myApp|url@urlField', '', 'width=760,height=560,resizable=1');
}

That's all we need. Leave the rest to IMCE.
It will automatically create an operation tab named "Send to myApp" that sends 
the file url to our 
url field.
Clicking the files in preview do the same thing as well.

Thanks,
Becky

Original issue reported on code.google.com by gormeng...@gmail.com on 5 Nov 2008 at 12:11

GoogleCodeExporter commented 9 years ago
Also of course, this is for use in Drupal.

Original comment by gormeng...@gmail.com on 5 Nov 2008 at 12:11

GoogleCodeExporter commented 9 years ago
I worked at this problem...

My solution: 

Replace your jquery.wysiwyg.js with my attached &
/sites/all/modules/imce/js/imce_set_app.js too.

(sorry for my English) :)))) 

Original comment by crazy.v...@gmail.com on 20 Jan 2009 at 9:00

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you! It was great of  you to work on this. I will try it out soon.

Thanks!

Becky

Original comment by gormeng...@gmail.com on 21 Jan 2009 at 10:36

GoogleCodeExporter commented 9 years ago

Original comment by akzhan.a...@gmail.com on 8 Dec 2009 at 12:00

GoogleCodeExporter commented 9 years ago
Issue 99 has been merged into this issue.

Original comment by akzhan.a...@gmail.com on 8 Dec 2009 at 2:37

GoogleCodeExporter commented 9 years ago
Is there a relatively simple way to make this work without using Drupal or that 
a pretty major hack job? I have a current existing PHP jQuery site and I would 
love to use a simple lightweight (as opposed to TinyMCE or FCK) wysiwyg like 
this. I was ideally hoping to write my own image uploading browser

Original comment by reverseproductions on 3 Jul 2010 at 1:42