Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Problem with upload in wysiwyg editors in combination with flexible content
-
Hi all,
i have the following scenario for testing:
a new installation of wordpress (3.4.2) with acf (3.5.4.1) as the only plugin installed.
I use the flexible content field.
I have one field (flex content) with 4 wysiwyg sub-fields (all full size with media buttons) attached to posts.
Problem:
first time inserting an image to one of the 4 fields works (image is displayed in the correct content area),
every new insert from any of the 4 media buttons targets to the content area of my first insert (image is displayed in the wrong content area).
I hope you understand what i'm trying to do and what goes wrong.
Any help or advice is very welcome.
I used similar scenarios few times ago and it worked. So i think there may be a problem with the current version of acf.
Thanks in advance,
Hanns -
-
Hi Elliot,
i tried with Firefox, Safari and IE on WIndows (all up to date).
I wrote, it worked in the past, but i rechecked it with the older versions of acf and it didnt work either.
So i think, i (and my customers) didnt noticed it for this special case.
Thanks for having a look,
Hanns -
Hi @Hanns,
Good news. I've found and fixed the issue completely! You can download the latest build here: https://github.com/elliotcondon/acf
Cheers
Elliot -
Hi @Elliot,
nearly perfect. I tried with a new installation again (wp 3.4.2 and the acf 3.5.4.2) and new Firefox.
It works, if i check (with mouse-cursor) the target wysiwyg before inserting the image with the media button.
In case i just click on "add new" (flex content) and klick on any of the upload Buttons, the image is inserted in the last wysiwyg field in the list.
Perhaps you can check this again.
By the way:
I saw the new TAB function and had a quick test: GREAT. Although i didnt know, i waited for this.
Thanks,
Hanns -
Hi @Hanns,
Yes, you need to place the cursor where you wish to insert the image. Perhaps I could add a click event to the upload buton and override the activeEditor variable there too...
Good idea!
Cheers
Elliot -
Hi @Hanns,
This has been fixed adn you can test it by downloading the latest nightly build here: https://github.com/elliotcondon/acf/
Cheers
Elliot -
Hi Elliot,
works great now.
Thank you very much,
Hanns