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

Copy Paste removes formatting #67

Open
itsmunjal opened this issue Apr 23, 2019 · 3 comments
Open

Copy Paste removes formatting #67

itsmunjal opened this issue Apr 23, 2019 · 3 comments

Comments

@itsmunjal
Copy link

Hi

I added some bullet text in the editor and then tried to cut all the content and then paste it, now pasted content doesn't show bulleted list. Can you guide me where to fix this?

Thanks

@chinalwb
Copy link
Owner

I see your question, let me think and come back to you if I could get an idea.

Thanks.

@chinalwb
Copy link
Owner

The default Copy/Cut & Paste only applies for the built-in span styles, for bullet, which is a custom span, so we'll need to do the customize on the Copy / Cut & Paste actions.

Links for references:
https://stackoverflow.com/questions/12995439/custom-cut-copy-action-bar-for-edittext-that-shows-text-selection-handles
https://stackoverflow.com/questions/51285321/android-spannable-copy-cut-custom-span-in-edittext-only-pastes-the-base-class

I can work on it, but I am really sorry, it may take long as currently I have a few urgent for myself to finish.

If you can make a PR that would be the best, thank you in advance.

@chinalwb
Copy link
Owner

chinalwb commented Apr 27, 2019

I checked in some unfinished code, you can take a look if you would like.

dfbf8b2

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