Results 489 comments of Henry Heino

It looks like an [upstream issue already exists](https://github.com/codemirror/dev/issues/987) and the issue should be fixable by updating CodeMirror's lang-markdown package, if it hasn't been updated already.

It's working for me in the [TestFlight version of Joplin](https://discourse.joplinapp.org/t/ios-pre-release-2-10-is-now-available-updated-29-dec/28848/2), which has a newer version of CodeMirror.

Notes: - Long-press > `copy link` in Safari: **Can** be pasted into Joplin - Long-press > `Share` > `copy` in Safari: **Cannot** be pasted into Joplin - Link copied from...

I can reproduce this in an [upstream CodeMirror demo](https://codemirror.net/try/?c=aW1wb3J0IHtiYXNpY1NldHVwLCBFZGl0b3JWaWV3fSBmcm9tICJjb2RlbWlycm9yIgppbXBvcnQge21hcmtkb3dufSBmcm9tICJAY29kZW1pcnJvci9sYW5nLW1hcmtkb3duIgppbXBvcnQge2xhbmd1YWdlc30gZnJvbSAiQGNvZGVtaXJyb3IvbGFuZ3VhZ2UtZGF0YSIKCi8vIFRoZSBNYXJrZG93biBwYXJzZXIgd2lsbCBkeW5hbWljYWxseSBsb2FkIHBhcnNlcnMKLy8gZm9yIGNvZGUgYmxvY2tzLCB1c2luZyBAY29kZW1pcnJvci9sYW5ndWFnZS1kYXRhIHRvCi8vIGxvb2sgdXAgdGhlIGFwcHJvcHJpYXRlIGR5bmFtaWMgaW1wb3J0LgpsZXQgdmlldyA9IG5ldyBFZGl0b3JWaWV3KHsKICBkb2M6ICItIFsgXSBUZXNzdCIsCiAgZXh0ZW5zaW9uczogWwogICAgYmFzaWNTZXR1cCwKICAgIG1hcmtkb3duKHtjb2RlTGFuZ3VhZ2VzOiBsYW5ndWFnZXN9KSwKICAgIEVkaXRvclZpZXcuY29udGVudEF0dHJpYnV0ZXMub2YoewogICAgICAgIGF1dG9jYXBpdGFsaXplOiAnc2VudGVuY2UnLAogICAgICAgIGF1dG9jb3JyZWN0OiAndHJ1ZScsCiAgICAgICAgc3BlbGxjaGVjazogJ3RydWUnLAogICAgfSksCiAgXSwKICBwYXJlbnQ6IGRvY3VtZW50LmJvZHkKfSkK). It should still be possible for us to fix this issue with a custom `onpaste` handler (as we have on desktop).

Upstream bug report: https://github.com/codemirror/dev/issues/1350

The issue seems to be that iOS is only providing data with MIME type `text/uri-list`, which currently isn't handled.

Is the beta markdown editor enabled? If not, does this also happen in the beta editor (or just the non-beta)?

Does this issue seem the same/similar to https://github.com/laurent22/joplin/issues/9735?

https://github.com/laurent22/joplin/issues/9735#issuecomment-1962440067 suggests that this issue happens for all XWayland apps.