Skip to content

Media: Unable to hyperlink images inserted in a post or page #505

Open
@KokkieH

Description

@KokkieH

To reproduce:

  1. Create a new post
  2. Add an image (source of the image doesn't matter)
  3. Tap on image

What I expected

To be able to add a link for the image as with the visual editor:

screenshot_20171018-140050

What I observed

The options available does not include the option add a link:

screenshot_20171018-140513

Additional testing

If I hyperlink the image in the Visual editor, and then switch to the Aztec editor, the link is moved to after the image, i.e. the img tag is no longer wrapped in the a tags as it should be. In the HTML view it looks like this:

screenshot_20171018-140940

This also happens if manually typing the HTML in HTML view, switching to Visual, and then switching back to HTML, as reported in #196

I also tried to long-press the image, and then add a link via the hyperlink button in the toolbar (as it works in the Calypso editor in my mobile browser). The result is the same as above. That doesn't work in the Visual editor either, though - in the visual editor the image is simply removed if I try to add a link that way - so not necessarily an Aztec bug.

Tested

Nexus 5X on Android 8.0.0 with WordPress for Android 8.3.1

Originally reported by an iOS user via Twitter.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions