Jump to content

Image Field description is deleted when re-editing image in TinyMCE (possible bug)


landitus
 Share

Recommended Posts

I'm having a weird issue with images in TinyMCE.

  1. When adding images to the images field (the default one), I add a description.
  2. Then I add the image to the body field via TinyMCE.
  3. Then save and the image has the correct alt text. So far so good...
  4. But, if I reopen the same image with the image button, the description is gone from the modal window. If I re-save, the image is displayed without the description.

Looks like the image it's not retaining the original description value when editing. Is this a bug?

  • Like 1
Link to comment
Share on other sites

Same for links that have a class added and if reopened in link modal and changed the link lost the class added before. This is ever since. And with image too. Think there was some thread about it.

Link to comment
Share on other sites

It is working fine for me on stable and dev versions of PW. That description field is stored directly in the alt field in the RTE. Do you have any unusual TinyMCE settings that could be causing it?

Nope, just a content_css stylesheet.

Same for links that have a class added and if reopened in link modal and changed the link lost the class added before. This is ever since. And with image too. Think there was some thread about it.

Oh! I'm sad to hear that  :( . Is this difficult to fix? I tried to look in the forums and haven't found the same issue. 

I'm confused, @adrian, do you mean PW v2.3.1? Or a different stable version?

Link to comment
Share on other sites

  • 2 weeks later...

Landitus, you and Soma are talking about two different issues. The issue you mentioned, about the description (alt tag) disappearing after editing an image, is one that I can't duplicate here (just tried). You may want to upgrade your site to PW 2.4 just in case the version you have had some issue in that regard. The issue that Soma mentioned is an expected one, because when you use the link or image dialogs, it is writing out a new <a> or <img> tag when you click the "insert link" or "insert image" button. Since a 'class' attribute is not used by the link dialog, it writes out a new <a> tag with no class attribute. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...