Android-Rich-text-Editor
Android-Rich-text-Editor copied to clipboard
Paste Clip data removes formatting
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.
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.
Thanks you for your reply sir. I'll try this.
@AKK-Tech Hey, did you test it,? Succeeded?