Skip to content

Conversation

@SergioEstevao
Copy link
Contributor

Fixes #165 and #433

This PR adds support for video insertion trough the formatting toolbar and implements HTML/DOM changes when videos are added/removed.

To test:

  • Open the demo app with the preloaded content
  • Tap on the image and video and see if they work correctly
  • Delete image and video from the content and see if the HTML is updated correctly.
  • Tap on the media toolbar item
  • Add video and image, and check if they are inserted correctly
  • Switch to HTML mode and check if the HTML is correct.

Copy link
Contributor

@jleandroperez jleandroperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working perfectly!!! added just a nipticky var name comment.

:shipit:!!

let newUrl = new?.srcURL

let addImageUrl = originalUrl == nil && newUrl != nil
let removeImageUrl = originalUrl != nil && newUrl == nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nipticky: These two should probably be addVideoUrl and removeVideoUrl

Copy link
Contributor

@jleandroperez jleandroperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@SergioEstevao SergioEstevao merged commit b73550d into develop Apr 21, 2017
@SergioEstevao SergioEstevao deleted the feature/165_433_video_in_html branch April 21, 2017 15:29
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