I'd like to add support for hyperlinking inline images. It appears this isn't supported out of the box, and when I try to create some custom code that wraps the <img> tag in an anchor tag, Trix will strip it out.
Strangely, when attempting to link an image on https://trix-editor.org/ via a keyboard shortcut, the box just shows false no matter what. This seems like a bug to me.
Additionally, if you open the hyperlink input and immediately click "Unlink", the hyperlink button in the toolbar will become active.
Steps to Reproduce
Add an inline image
Hit ctrl/cmd K to add a hyperlink
Observe that "false" is shown in the text field and no link can be saved
I'd like to add support for hyperlinking inline images. It appears this isn't supported out of the box, and when I try to create some custom code that wraps the
<img>
tag in an anchor tag, Trix will strip it out.Strangely, when attempting to link an image on https://trix-editor.org/ via a keyboard shortcut, the box just shows
false
no matter what. This seems like a bug to me.Additionally, if you open the hyperlink input and immediately click "Unlink", the hyperlink button in the toolbar will become active.
Steps to Reproduce
Details