-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
BUG: Duplicated links are added using rte #6263
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
Comments
So I've been playing around with this quite a bit and I can reproduce the error on the Codepen that @yashvi2026 provided. My steps to reproduce (most of the time) are very similar:
However, I was unable to reproduce this in a dev environment. After lots of trial and error, I saw that the Codepen is using GrapesJS v0.22.1. I switched that to use v0.22.4 (the latest Codepen could find) and I could no longer reproduce it. @yashvi2026 - if you upgrade the version in your Codepen (or wherever else you were seeing this) can you still reproduce the error? |
Yes.After upgrading to latest version ,this issue doesnt occur. |
Alight - the only bad part is we may never know what the fix ended up being. @artf - I think we can close out this issue. |
GrapesJS version
What browser are you using?
Chrome
Reproducible demo link
https://codepen.io/Harshsne/pen/xxoOyXO
Describe the bug
How to reproduce the bug?
What is the expected behavior?
Second Added link should be wrapped around the first link and the text.
What is the current behavior?
Two link component is added.
code
var url = window.prompt('Enter the URL to link to:');
rte.insertHTML(
<a class="link" href=${url}>${rte.selection()}</a>
);Code of Conduct
The text was updated successfully, but these errors were encountered: