wordpress-mobile / AztecEditor-iOS

A reusable native iOS visual HTML text editor component.
Mozilla Public License 2.0
615 stars 147 forks source link

unable to paste text into native mail app #1257

Open MadeByDouglas opened 4 years ago

MadeByDouglas commented 4 years ago

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
SergioEstevao commented 4 years ago

What happens if you use the option Paste Without Formatting ?

MadeByDouglas commented 4 years ago

like the SHIFT + OPTION (and then CMD + V) for mac? I believe I tried it... but can't remember what happened :/