I'm using the dev 6 modules. When i click on insert into post nothing happens. I'm using nicedit....a wysiwyg editor like tiny mce. Any ideas?

Comments

mdgrech’s picture

Alright when i turn off the editor the module works fine but that doesnt really solve my problem

hutch’s picture

The javascript WYSIWYG editors replace the existing textarea box with their own and it has its own id so imagepicker cannot find it. It works with tinymce because there is code in the javascript that handles the insertion, it looks for the id that tinymce uses. Here is the code that does it:

      var isTinyMCE = win.document.getElementById('mce_editor_0');
      if (isTinyMCE) {
        win.tinyMCE.execCommand('mceInsertContent', false, imgpInsertion);
      }

As you can see, it finds the id 'mce_editor_0' and then runs the tinyMCE command 'mceInsertContent' to do the job.
I don't know wether this can be adapted to nicedit or not, a careful look at the page with a tool like firebug might reveal enough, along with a trawl through the nicedit code to find how the insertion command works.

Alternately you could post a request for help with the nicedit folks, if they can reveal information similar to the above it might be possible to get it going, either way let this list know.

Hope this helps.

cgdigitaltreats’s picture

I have the same problem with fckeditor.
I have it set to default off, and the user can post the image, and then switch fck on.

Antonio

hutch’s picture

Have you tried the patch in
http://drupal.org/node/274093
This will enable fckeditor in imagepicker
It goes without saying that this should be tested in a development environment, not on a production system.
Please report your results!

Hope this helps

hutch’s picture

Status: Active » Closed (fixed)

Support for fckeditor-6.x-1.3 module now available in imagepicker-6.x-2.x-dev