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

Paste Clip data removes formatting #137

Open
AKK-Tech opened this issue Jan 20, 2021 · 3 comments
Open

Paste Clip data removes formatting #137

AKK-Tech opened this issue Jan 20, 2021 · 3 comments

Comments

@AKK-Tech
Copy link

AKK-Tech commented Jan 20, 2021

Hi,

If I copied data from note or some other applications, I can't get the correct format when I paste it. Could you help me please if you have a time to explain?

Thanks.

@chinalwb
Copy link
Owner

Hi,

When pasting content to the editor, the editor's onTextChanged method will be triggered, so I think you need to parse the pasted content from html into Spannable (using Html.fromHtml(html) ), then update the editor with the result.

I am not 100% sure about this but it worths a try.

Thanks.

@AKK-Tech
Copy link
Author

AKK-Tech commented Feb 3, 2021

Thanks you for your reply sir. I'll try this.

@easy-apps-2018
Copy link

@AKK-Tech Hey, did you test it,? Succeeded?

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

3 participants