postleaf icon indicating copy to clipboard operation
postleaf copied to clipboard

linkable images

Open renzy opened this issue 6 years ago • 5 comments

more of a req, but would be nice for people who don't know how to code html to make an image linkable with the cms. ive been able to do the this fine with html code block insert but no luck with the image insert button an then trying to link it.

might tweak it out myself, if i come up with a clean solution i can share if ya want. not sure if there is an underlying reason this isn't there though

renzy avatar Apr 03 '18 02:04 renzy

You're supposed to be able to do this by inserting an image, then linking to it using CMD+K or the Link button in the toolbar. I just checked, and it looks like that no longer works in Chrome. (It looks like the selection is getting removed at some point.)

The first thing I'd try is a TinyMCE update. That usually fixes common browser quirks as they pop up in new versions.

It probably couldn't hurt to add a link input to the image panel too. I left it out originally because it seemed redundant, but I think it could be executed cleanly.

claviska avatar Apr 03 '18 02:04 claviska

...ive been able to do the this fine with html code block insert....

Thanks for pointing me to this solution! ;)

M8inC avatar Sep 13 '18 13:09 M8inC

You're supposed to be able to do this by inserting an image, then linking to it using CMD+K or the Link button in the toolbar. I just checked, and it looks like that no longer works in Chrome. (It looks like the selection is getting removed at some point.)

The first thing I'd try is a TinyMCE update. That usually fixes common browser quirks as they pop up in new versions.

It probably couldn't hurt to add a link input to the image panel too. I left it out originally because it seemed redundant, but I think it could be executed cleanly.

I tried to add a link to an image by Link button. But it does not work.

kylechine avatar Dec 17 '18 23:12 kylechine

Odd, I just replicated this and it seems like this really isn't working. I wonder if a browser update broke something along the way.

A quick guess is that the TinyMCE bookmark is being lost when the link is inserted. Or it could be trying to wrap the link around the <figure> and then the anchor gets cleaned by TinyMCE (since block-level anchors aren't supported).

claviska avatar Dec 19 '18 16:12 claviska

Currently, I have work around this by using HTML box directly.

kylechine avatar Dec 20 '18 01:12 kylechine