Skip to content

Commit

Permalink
Merge pull request #117 from editor-js/fix-link-removing-on-paste
Browse files Browse the repository at this point in the history
fix(onPaste): removing of the link on paste of the list
  • Loading branch information
e11sy authored Nov 20, 2024
2 parents 80132f1 + 7bc4c04 commit bbc46d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@editorjs/list",
"version": "2.0.1",
"version": "2.0.2",
"keywords": [
"codex editor",
"list",
Expand Down
2 changes: 1 addition & 1 deletion src/ListTabulator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ export default class ListTabulator<Renderer extends ListRenderer> {
// 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,
Expand Down

0 comments on commit bbc46d5

Please sign in to comment.