I had been using this successfully with ckeditor for a couple of weeks, but needed to switch to TinyMCE since ckeditor still has several problems. The button works in TinyMCE, but text won't display in the form box. If you edit a post, the text doesn't display (and HTML source shows nothing), but upon submit, the text is still there. Also, if I switch to a input format that doesn't have the imagefield button, everything displays normally.

CommentFileSizeAuthor
#6 wysiwyg_imagefield.patch1.07 KBanon

Comments

jaarong’s picture

Edit to the above: On a new post with an input format that has the imagefield button, you can't submit any text/html. It doesn't display and never submits.

deciphered’s picture

I can confirm that it does work in TinyMCE, as that is what I used for the primary development of the module.

I assume when you say TinyMCE you are referring to TinyMCE via the WYSIWYG module?
Does the Insert module alone work for you? Because that is the module that is actually inserting the HTML into the WYSIWYG. If not, check to see if you are using the latest version, or if there is a known issue.

jaarong’s picture

Yes, insert works fine. Like I said, it's not the inserting of the image that doesn't work. It inserts an image fine. Enabling the field on the content type though affects everything else (text/html) in the window. It's simply blank with the exception of the image I just inserted. Turning the field off for the content type gets everything back working normally.

jaarong’s picture

Sorry, need to correct the above comment. It's not enabling the checkbox on the field that is the catalyst, it is enabling the button on the wysiwyg profile. Also, text that you type in displays, but is filtered when submitted. Text that was already there (by editing a node) does not show up, but upon submit proves to still be there.

anon’s picture

I have this same issue on blocks.

I think this is happening when you dont have any cck imagefileds.

anon’s picture

StatusFileSize
new1.07 KB

Try this patch.

It will remove the icon if we dont have any fields for images (for exampel with blocks)
It will also prevent the dialog function to be attached to the fields wrapper

This patch has a console.log in it, DO NOT USE!!

jaarong’s picture

Not having any fields isn't my problem. Like I said, it works fine, but no text will show up in the box. I had installed this and tested it successfully several times, but I simply failed to even think about typing anything in the same box with the image in my testing.

spgd01’s picture

I have the exact same problem with Wysiwyg API and TinyMCE.

huotte’s picture

We were having this problem as well. We tried the patch submitted by anon above (cleaned to remove the console.log) and can verify that it works.

It would be cool if the maintainers could integrate this patch in a next point revision to allow using a version in production that is not patched by hand.

Thanks!