Skip to content

Conversation

@SergioEstevao
Copy link
Contributor

This PR, refactor the implementation of links on images.

Instead of using a custom property on ImageAttachment and doing some special parsing, this kept the parsing clean, just parsing the elements normally.

Then when tapping on the img it detects if a link is surrounding just the image and edits that link if available.

To test:

  • Start the demo app
  • Open the empty demo
  • Insert an image
  • Switch to html and see if link is there
  • Switch back to Visual mode
  • Tap on the image
  • Change the link

# Conflicts:
#	Aztec/Classes/NSAttributedString/Conversions/AttributedStringSerializer.swift
@SergioEstevao SergioEstevao merged commit 140de06 into develop Dec 1, 2017
@SergioEstevao SergioEstevao deleted the try/implement_link_on_image branch December 1, 2017 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants