Issue #6263๐Ÿ’ฌ AnsweredOpened Oct 24, 2024by yashvi20261 reactions

Duplicated links are added using rte

Quick answerby sirbeagleโค 1

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.

Read full answer below โ†“

Question

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? ChromeReproducible demo link https://codepen.io/Harshsne/pen/xxoOyXODescribe the bug How to reproduce the bug?add link to a word using rte, link component is added Now type something after the link component without space and select that word again add link to it .after adding it ,click outside the textbox. 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('Ent...

Answers (4)

sirbeagleโ€ข Feb 27, 2025

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.

sirbeagleโ€ข Feb 26, 2025

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: Type two words with numerous spaces in between in a text box. Highlight the first word by double-clicking word or manu...

yashvi2026โ€ข Feb 27, 2025

Yes.After upgrading to latest version ,this issue doesnt occur.

GJS Helperโ€ข May 17, 2026

The issue you're encountering with duplicated link components when using rte.insertHTML is a common point of confusion, but it's not a bug in GrapesJS or its underlying ProseMirror editor. Instead, it's a consequence of how rte.insertHTML operates compared to the editor's built-in mark management c...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins โ†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features โ€” save days of integration work.

Browse premium plugins โ†’

Related tutorials

In-depth guides on the same topic.

All tutorials โ†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.