Opened 10 years ago

Closed 10 years ago

#11018 closed Bug (duplicate)

Image properties dialog: attaching links containing Emoji

Reported by: feigner Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:


Ran across a strange bug today. Basically, when attaching a link containing Emoji characters to an image via the 'image properties' dialog, things don't appear to get properly encoded, which is causing some downstream issues for me.

Steps to reproduce (within the CKEditor demo):

Note: I've found a workaround. Insert an image as described above, but instead of using the 'link' tab on the image properties dialog, hit 'ok' and insert a link using the link dialog. This appears to work as expected:


<a href="🎧beats'n'the-bloodstream🎧-b2eF8i"><img alt="" src="" style="height:200px; width:160px" /></a>


<a href="'n'the-bloodstream%F0%9F%8E%A7-b2eF8i"><img alt="" src="" style="height:200px; width:160px" /></a>

Change History (4)

comment:1 Changed 10 years ago by Jakub Ś

Status: newpending

Is there any chance you could send us a screencast because I may be missing something.

I have opened demo page and on image I have added link that you have marked as original. It has worked in FF and in IE. In Webkit and Blink (Safari and Opera, Chrome) this image wasn't understood but this looks like browser issue. Just open this page in Chrome and instead of head phones you will see squares. Is this what you had in mind?

comment:2 Changed 10 years ago by feigner


Thanks for the quick response. Unfortunately, I am unable to send a screencast for this issue. I've tested this with multiple browsers (FF, Safari, Chrome) and am experiencing the same behavior across all of them.

To restate what I'm seeing: Attaching a link (that contains emoji) to an image via the 'image properties' dialog yields different markup than attaching a link with the standard link option.

Within the demo editor, I set up two images. On the first image, I attached a link with the link menu option. On the second, I attached the link with the image properties dialog. After clicking 'source,' the markup is different.

Original link (copied from browser URL bar):'n'the-bloodstream%F0%9F%8E%A7-b2eF8i

Demo editor output:

<p class='first'><a href=""><img alt="Saturn V carrying Apollo 11" src="" /></a></p>

<p class='second'><a href="🎧beats'n'the-bloodstream🎧-b2eF8i"><img alt="Saturn V carrying Apollo 11" src="" /></a></p>

comment:3 Changed 10 years ago by Jakub Ś

Ok I think I got it. You insert below link into image-link-tab and into link dialog

In link dialog it gets unchanged while in image-link-tab it gets changed. This is because of this issue: #10867.

Image link tab still uses decode uri while it should not.

I'm closing this as dup of #10867. Please refer to that ticket in the future.

comment:4 Changed 10 years ago by Jakub Ś

Resolution: duplicate
Status: pendingclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy