Jump to content


Photo

TinyMCE content image disappears when editing existing image link


  • Please log in to reply
5 replies to this topic

#1 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,520 posts
  • 845

  • LocationVihti, Finland

Posted 21 March 2012 - 06:27 AM

On the latest version of PW if you have image link on your TinyMCE field, you choose that imagelink and edit link, after clicking insert link the image and the link disappears.

Not sure if this is the case with older installation.

Not directly related, but also in TinyMCE: if you edit the image, it loses dimensions and goes full size.

#2 ryan

ryan

    Hero Member

  • Administrators
  • 5,771 posts
  • 3107

  • LocationAtlanta, GA

Posted 21 March 2012 - 10:33 AM

On the latest version of PW if you have image link on your TinyMCE field, you choose that imagelink and edit link, after clicking insert link the image and the link disappears.


It looks like this is a new issue that came as a result of our recent fix for the links not being editable in some instances. A text() in jQuery needed to be an html() instead -- easy fix. Just committed.

Not directly related, but also in TinyMCE: if you edit the image, it loses dimensions and goes full size.


This one I can't duplicate. Though if it was possibly related to the other issue, then that may be why. Let me know if it still does it to you after the other issue is fixed, and if so, in what browser (I tested in Chrome 17).

Thanks,
Ryan

#3 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,520 posts
  • 845

  • LocationVihti, Finland

Posted 21 March 2012 - 10:43 AM

Ryan: thanks for the fix.

The latter issue must be because I have disabled width and height from allowed img attributes (to make images responsive). I might need to take an another route here (removing those dimensions on page load).

#4 Soma

Soma

    Hero Member

  • Moderators
  • 3,186 posts
  • 1739

  • LocationSH, Switzerland

Posted 22 March 2012 - 04:58 AM

Sorry guys, as this was my fault for not testing the bug fix with link editing through-out.

@somartist | modules created | support me, flattr my work flattr.com


#5 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,520 posts
  • 845

  • LocationVihti, Finland

Posted 22 March 2012 - 05:06 AM

No worries Soma, glad it was an easy fix.

#6 ryan

ryan

    Hero Member

  • Administrators
  • 5,771 posts
  • 3107

  • LocationAtlanta, GA

Posted 22 March 2012 - 11:38 AM

Not a problem Soma. I'm just glad you were able to find a fix for the other issue, because that one was a lot harder to fix than this one. Also, my experience with TinyMCE is that any time I fix something, I break something else, but don't usually find out about it right away. So this just seems to go with the TinyMCE territory. :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users