Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

line breaks are removed when copying text #2

Open
markenapps opened this issue Feb 16, 2020 · 1 comment
Open

line breaks are removed when copying text #2

markenapps opened this issue Feb 16, 2020 · 1 comment

Comments

@markenapps
Copy link

markenapps commented Feb 16, 2020

Hi and thanks for this plugin. Would be great when it will support for copying formatted text via clipboard.copy.

cordova.plugins.clipboard.copy("aaa\u000abbb");
or
cordova.plugins.clipboard.copy("aaa\nbbb");

cordova.plugins.clipboard.paste().then((text) => { console.log(text) });
-> aaa bbb
but should be
aaa
bbb

Reproducable with Android and iOS.
I'm using revision 03ab5b1, phonegap-version: cli-9.0.0 iOS: 5.0.1, android: 8.0.0

@markenapps markenapps changed the title line breaks are removed when pasting text line breaks are removed when copying text Feb 16, 2020
@givethanks1
Copy link

i am having the same issue

And formatted HTML (e.g., .. or ...) is lost.

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

No branches or pull requests

2 participants