This is my first drupal project.

I've initially plumped for WYMEditor as my editor of choice due to the simple clean code it produces.
It is perfect for me apart from one thing, the ability to add images. As default it just comes with a popup box where you have to enter a url. A pain for me. A complete no-no for a client.

So whilst looking for enhancements I came across IMCE.
On the IMCE module page it says:
"Since its first release, IMCE has been used as a file browser in many popular rich text editors such as FCKEditor, TinyMCE, WYMEditor, Whizzywig etc.". However I can find no more references to WYMEditor from thereon.

I have installed IMCE and also have WYMEditor installed. both are enabled but I can see no way to link the two, and my WYMEditor still has only the very basic way of adding an image. I did make a support request on the WYMEditor area of drupal.org a couple of weeks ago but that seems to be a pretty quiet place and my time to delivery is running out so I am hoping someone here can give me some pointers. if I can't get this working I'm going to have to drop WYMEditor but I would really like to keep using it.

Any advice gratefully received.

Thanks

Comments

billybob4’s picture

Component: Documentation » User interface
Category: support » bug

I've managed to get the 'Insert image or link.' text to appear below the editor by adding 'edit-body' to the 'Enable inline image/file insertion into plain textareas' box in the IMCE config area, and clicking on 'image' brings up the IMCE window. However if I click 'add' on the image I want nothing happens. When I click 'add' Firebug shows that there is a javascript error:

uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost/Drupal59/sites/all/modules/imce/imce_set_inline.js :: imceInsertAtCursor :: line 32" data: no]

Is this a bug?

billybob4’s picture

Title: IMCE and WYMEditor » IMCE and WYMEditor ('add' image fails and gives javascript error

Further info:

I have jQuery Update 5.x-2.0 installed and enabled

billybob4’s picture

Status: Active » Closed (fixed)

Never mind. I've switched to FCKEditor now