Skip to content

Add a media settings view for images (#1527)#3

Closed
jkv wants to merge 20 commits intowordpress-mobile:masterfrom
jkv:trac-1527
Closed

Add a media settings view for images (#1527)#3
jkv wants to merge 20 commits intowordpress-mobile:masterfrom
jkv:trac-1527

Conversation

@jkv
Copy link

@jkv jkv commented Apr 15, 2013

Ref: http://ios.trac.wordpress.org/ticket/1527

Added a media settings view that allows a user to manage the caption, link, alignment, position and size of an image that has been uploaded from the iOS device. Changes made to the media settings on other devices (web, android, etc) are handled. Example, you can upload an image from your phone, edit the size and caption on the web site and then open the post on the phone and make changes to the settings again. If there are any additional attributes added to the image or anchor elements they will not be lost.

Note: Images uploaded from other devices are still not displayed in the attachments for a post.

  • Updating media no longer blindly replaces text, handles when the user
    makes changes to the HTML manually or from another device, and keeps
    attributes in place that the media settings can not handle
  • Changed all the media notifications to be sent in the same way. The
    notification object is always the sender and Media and MediaSettings
    are sent inside the userInfo dctionary.
  • MediaSettings
    ** Class method createMediaSettingsForUrl can be used to pull out the
    HTML for a media object matching the URL. This HTML will include the
    caption, a and img elements.
    ** 5 properties are exposed that can be set from the new
    MediaSettingsViewController (captionText, alignment, customWidth,
    customHeight, linkHref). Making changes to any of these will only
    replace/update the text in the media HTML and leave all other
    attributes alone.

sendhilp and others added 20 commits March 14, 2013 16:48
* Cleaned up header
* Changed constants from #define to CGFloat const
* Removed unnecessary delegate
It was helpful while developing it, but now it's mostly annoying
Added more formatting and links to trac and style guide
We were using "postid", but wp.getPages uses "page_id"
That means pageID was always nil on `+ [Page findOrCreateWithBlog:andPageID:]`, and pages were recreated on every sync

refs wordpress-mobile#1578
We're disabling this until it's more stable
In some cases (display_errors Off?) media uploads that run out of memory
would return an empty response. Treat that as a failed upload so it can
be retried/discarded
If we get a XML-RPC error 425, that means the password was correct, but
two step authentication is enabled, and we need to switch to an app
specific password
…sword would disappear after scrolling the view in landscape orientation.
Ref: http://ios.trac.wordpress.org/ticket/1527

Added a media settings view that allows a user to manage the caption, link, alignment, position and size of an image that has been uploaded from the iOS device. Changes made to the media settings on other devices (web, android, etc) are handled. Example, you can upload an image from your phone, edit the size and caption on the web site and then open the post on the phone and make changes to the settings again. If there are any additional attributes added to the image or anchor elements they will not be lost.

Note: Images uploaded from other devices are still not displayed in the attachments for a post.

* Updating media no longer blindly replaces text, handles when the user
makes changes to the HTML manually or from another device, and keeps
attributes in place that the media settings can not handle
* Changed all the media notifications to be sent in the same way. The
notification object is always the sender and Media and MediaSettings
are sent inside the userInfo dctionary.
* MediaSettings
** Class method createMediaSettingsForUrl can be used to pull out the
HTML for a media object matching the URL. This HTML will include the
caption, a and img elements.
** 5 properties are exposed that can be set from the new
MediaSettingsViewController (captionText, alignment, customWidth,
customHeight, linkHref). Making changes to any of these will only
replace/update the text in the media HTML and leave all other
attributes alone.
@ghost ghost assigned koke Apr 16, 2013
koke added a commit that referenced this pull request May 22, 2013
Fixing bug where clicking on the notification detail header would result in a blank page being opened
frosty added a commit that referenced this pull request Mar 14, 2017
frosty pushed a commit that referenced this pull request Jan 8, 2018
jklausa pushed a commit that referenced this pull request Oct 10, 2018
…n-option

Update visibility criteria of Plugins option
jkmassel pushed a commit that referenced this pull request Oct 24, 2018
…n-option

Update visibility criteria of Plugins option
@bjtitus bjtitus mentioned this pull request Mar 26, 2020
3 tasks
kean added a commit that referenced this pull request Jun 20, 2023
…maning-deprecated-uttype-apis

Drop iOS 14 Support: Update remaining UTType usages (#3)
kean added a commit that referenced this pull request Jul 7, 2023
…cation-warnings-io12jc912j

Drop iOS 14 Support: Address UIButton API deprecations (#3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants