Media Async: Visual editor support#5833
Merged
mzorz merged 11 commits intofeature/async-mediafrom May 10, 2017
Merged
Conversation
Because the API<19 WebView doesn't support the progress element, we use nested spans to create an 'Uploading...' overlay instead. The pattern needs to be more specific in order to guarantee matching the last closing span tag for that image.
…/fluxc-media-upload-service-visual-editor
Contributor
Author
|
Updated to move the tests to the new non-connected test folder (#5836), since they're actually 'unit' tests. |
…rvice-visual-editor
mzorz
reviewed
May 10, 2017
| // TODO implement visual editor implementation to update image/video in post | ||
| } else { | ||
| // TODO implement legacy editor implementation to update image/video in post | ||
| post.setContent(EditorFragment.replaceMediaFileWithUrl(post.getContent(), mediaFile)); |
Contributor
There was a problem hiding this comment.
I like this is good, can we also eliminate the intermediate modifiedContents variable up here in line 22? Not part of your PR but just saying we could replicate the same way in there
Contributor
Author
There was a problem hiding this comment.
Makes sense to me too, I'll update it 👍
Contributor
Contributor
|
thank you for this @aforcier! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds support for asynchronously (with the editor closed) updating in-progress media uploads in posts written in the visual editor.
To test:
Try above for photos and video, on WordPress.com and self-hosted sites, and on devices above and below API 19. Also make sure the tests run.
cc @mzorz