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

[Bug]: Decimal numbers are converted to links #557

Open
vhnithin opened this issue Jun 5, 2024 · 2 comments
Open

[Bug]: Decimal numbers are converted to links #557

vhnithin opened this issue Jun 5, 2024 · 2 comments

Comments

@vhnithin
Copy link

vhnithin commented Jun 5, 2024

What happened?

When we copy a Decimal number from anywhere to text editor ,it converts the decimal number to link
Screenshot_20240605-184355

Version

14.2.0

Angular Version

14.1.0

What browsers are you seeing the problem on?

Chrome

Link to reproduce

No response

Relevant log output

No response

Willing to submit a PR?

None

@daniel-belonio
Copy link

I hav the same problem, per the feature linkOnPaste is true by default, and then the linkify plugin is used which leads to weird links. To disable this just disable the feature:

this.editor = new Editor({ features: { linkOnPaste: false } });

But anyway the plugin should be fixed

@sibiraj-s
Copy link
Owner

There is an issue with this regex.

https://github.com/sibiraj-s/ngx-editor/blob/7f400933653bbb373221b50cd6db7909e47c979f/projects/ngx-editor/src/lib/plugins/link.ts#L4C25-L4C84

Will try to fix this week. Meanwhile PR welcome.

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