From e8af4f64e8fac37a26d70d65be8788a11742d3be Mon Sep 17 00:00:00 2001 From: e11sy <130844513+e11sy@users.noreply.github.com> Date: Wed, 20 Nov 2024 18:32:54 +0300 Subject: [PATCH 1/2] fix removing of the link on paste of the list --- src/ListTabulator/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ListTabulator/index.ts b/src/ListTabulator/index.ts index 35f0b6f..277b018 100644 --- a/src/ListTabulator/index.ts +++ b/src/ListTabulator/index.ts @@ -402,7 +402,7 @@ export default class ListTabulator { // get subitems. const subItems = subItemsWrapper ? getPastedItems(subItemsWrapper) : []; // get text content of the li element. - const content = child.firstChild?.textContent ?? ''; + const content = child.innerHTML ?? ''; return { content, From 67ab7b7a93e3e43631df7b3cd7ba113b39adcfc0 Mon Sep 17 00:00:00 2001 From: e11sy <130844513+e11sy@users.noreply.github.com> Date: Wed, 20 Nov 2024 18:34:02 +0300 Subject: [PATCH 2/2] bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d9057c7..59465f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/list", - "version": "2.0.0", + "version": "2.0.2", "keywords": [ "codex editor", "list",