Notification Rich Text Support#2735
Conversation
…ation-comments-rich-text-support Conflicts: WordPress/Classes/ViewRelated/Notifications/Notifications.storyboard
|
@aerych Thanks for such an epic testing session!!. All of the issues pointed out should be good now (details below). Scenario 1HTML in comments is expected to be filtered by wpcom, unless you're an admin in the blog. Scenario 2Links to images will not be rendered as images (that'd be expected). Users would be required to use the img html tag. Scenario 3Fixed! It was the NSParagraphStyle's maxLineHeight breaking the attachment. Scenario 4Autolayout error: fixed, thanks! Scenario 5Same as scenario 3, caused by NSParagraphStyle's maxLineHeight. Plus:
Thank you sir! |
|
Testing this round is looking good. I noticed just one small bit of wonkiness. To reproduce:
You'll probably see a big gap of white space where before there was none. Not a huge deal but if its an easy fix we should do it. Otherwise I'd say this is good to go, so, squash that one (if possible) then |
…ation-comments-rich-text-support
|
@aerych (Sorry about bothering you, yet again). Whenever possible, would you please verify the fix?. Thank you!
|
|
Looks good :D |
|
@aerych thank you sir! |
…n-comments-rich-text-support Notification Rich Text Support
Notifications: Rich Text Support
Now Text and Comment notifications have support for inline images. We've implemented a simple component, RichTextView, based on TextKit.
The original goal was to wire RichTextView's delegate to asynchronously download the images. However, that breaks if the image size is originally unknown: the user may / may not specify the embedded image size, beforehand.
For that reason, a simple helper class, NotificationMediaDownloader was implemented: this class receives a list of URL's, and will hit a completion callback whenever the assets are downloaded.
Duplicate downloads are prevented, and a simple cache has been implemented.
Closes #2661
/cc @aerych + @dan may i bother you with a code review?.
Thanks in advance!