landitus Posted January 29, 2014 Posted January 29, 2014 I'm having a weird issue with images in TinyMCE. When adding images to the images field (the default one), I add a description. Then I add the image to the body field via TinyMCE. Then save and the image has the correct alt text. So far so good... 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? 1
adrian Posted January 29, 2014 Posted January 29, 2014 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?
Soma Posted January 29, 2014 Posted January 29, 2014 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.
landitus Posted January 29, 2014 Author Posted January 29, 2014 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?
ryan Posted February 7, 2014 Posted February 7, 2014 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now