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

Issue with recognising links in between pasted text #31

Open
colenocks opened this issue Oct 4, 2023 · 2 comments
Open

Issue with recognising links in between pasted text #31

colenocks opened this issue Oct 4, 2023 · 2 comments

Comments

@colenocks
Copy link

Problem

When I paste a text like this test test test https://github.com test test, the module does not recognise the link in between and renders them all as plain text.

This however is recognised just fine with the default clipboard onPaste method.

What I tried

On line 103, I replaced this

delta = delta.insert(content);

with

delta = delta.concat(this.convert(content))

This seemed to work. Is there a reason why the plainText is not handled with the this.convert method?

Thanks

@Artem-Schander
Copy link
Owner

Hi @colenocks
as far as i remember, convert handles also all sorts of html tags. But I'm not entirely sure .. i need to look into it.

@colenocks
Copy link
Author

Thanks for the swift response @Artem-Schander. Looking forward to know what you deduce from it.

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