wordpress-mobile / wordpress-mobile/AztecEditor-iOS

unable to paste text into native mail app

Open
#1,257 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Bug
Dominant language
Swift
Stars
669
Forks
153
Avg merge
11h 27m
Merged PRs (30d)
4

Description

Describe the bug
When using Aztec Editor in Mac catalyst app or iOS simulator, want to copy text and then paste into native Mac mail app. However, Mail app refuses to paste, seemingly due to formatting error.

To Reproduce
copy text.
paste text in Mac mail app, it refuses with error sound.

Note: you can paste text in TextEdit, Pages, or Spark email client

Note: when running Aztec on actual iOS device, you can paste into iOS mail app. However, the font size and type is not what one would expect, it pastes at times new roman at a smaller than default size (iOS mail doesn't show sizes) Further, when that pasted text is saved via handoff / iCloud to the Mac, it still will not paste in the Mac mail app. When pasted to iOS pages, it appears as 14pt Helvetica.

Expected behavior
Mail should be able to receive the text from the clipboard from aztec.

Screenshots

This is an app to show everything that goes in the clipboard. I just have screenshots showing the different data that gets saved. I can add more data from each tab if its relevant, so far haven't seen anything stand out other than I notice aztec doesn't seem to have a utf16 being saved and it saves p tag in the public html as where apple mail uses a div.

aztec Mac catalyst
Screen Shot 2019-12-23 at 1 53 07 PM

aztec iOS simulator
Screen Shot 2019-12-23 at 2 07 20 PM

to compare, here is copied text from Pages and Apple mail

Pages
Screen Shot 2019-12-23 at 2 00 07 PM

Mail
Screen Shot 2019-12-23 at 1 53 31 PM

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

Reproduce the clipboard behavior from Aztec Editor in the Mac Catalyst app or iOS simulator, then compare its saved representations with the Pages and Apple Mail examples in the issue. Focus first on the reported differences in UTF-16 data, public HTML, and p versus div markup; done means copied text can be pasted into Mac Mail with expected formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, ios, swift
Domain
desktop, mobile
Issue type
Bug
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.