codex-team / codex-team/editor.js

Duplicate copied links in a nested list

Open
#2,545 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Describe a bug.

Steps to reproduce:
1. Go to editor
2. Click on + List
3. Write text, insert a link to the text, copy the text with a link
4. Create a new list level, insert text with a link (2nd level)
5. Create a new list level, insert text with a link (3nd level)
6. Open the developer tools and look at the HTML code for the third list item.

Extra links are displayed in the HTML markup, when saved, they are included in the data.

Expected behavior:

Only one link should be displayed

Screenshots:
![image](https://github.com/codex-team/editor.js/assets/16530109/b9c8f8ed-5650-4234-baf1-1afbecbed3ce)

Device, Browser, OS: Google Chrome Version 111.0.5563.110 (Official Build) (64-bit), Lunux Mint.

Editor.js version: 2.28.2

Plugins you use with their versions: I used the editor from the official website (Play with demo)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.