wordpress-mobile / wordpress-mobile/WordPress-iOS

Add support for document UTIs to import files / content

Open
#9,311 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Enhancement Draft Extension Posting/Editing Share Extension
Dominant language
Swift
Stars
3.9k
Forks
1.2k
Avg merge
23h 51m
Merged PRs (30d)
58

Description

We current support sharing text, URLs, and photos to the app via our share extensions. We can also add extra document types or imported UTIs (I'm not 100% sure which we need) to our Info.plist to display a "Copy to WordPress" action in other apps:

img_cffea20eb270-1

We can then update our implementation of - [UIApplicationDelegate application:openURL:options:] to handle these URLs and import their content into a new editor instance / post. We could support plain text + markdown files, as well as PDFs using PDFKit in iOS 11.

This would allow a user to, for example, draft a post in another app such as Byword or Bear Notes and then send the content straight into the editor in our app.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the share-extension declarations in Info.plist and the UIApplicationDelegate application:openURL:options: entry point; check how current text, URL, and photo imports reach a new editor instance. Confirm the supported document UTIs and PDFKit handling, then verify that plain text, Markdown, and PDF files from another app appear in a new editor or post.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c, swift
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.