Skip to content

Commit

Permalink
fix: Transform copied content
Browse files Browse the repository at this point in the history
  • Loading branch information
areknawo committed May 29, 2024
1 parent 9b175ee commit ab1fe11
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions apps/web/src/lib/editor/extensions/element/node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,7 @@ const Element = BaseElement.extend<
while (currentFragment.size > expectedSize) {
const newFragment = currentFragment.child(0).content;

if (
newFragment.size < expectedSize &&
["bulletList", "orderedList", "taskList"].includes(
currentFragment.child(0).type.name
)
) {
if (newFragment.childCount !== 1) {
break;
}

Expand Down

0 comments on commit ab1fe11

Please sign in to comment.