Skip to content

Commit

Permalink
fix: cannot copy format when copy elements from the editor it self
Browse files Browse the repository at this point in the history
  • Loading branch information
beeant0512 committed Aug 8, 2024
1 parent f671fbd commit 5131074
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export const createDeserializeAstPlugin = createPluginFactory({
/* empty */
}

if (parsed) {
return Array.isArray(parsed) ? parsed : [parsed];
}

return parsed;
},
},
Expand Down

0 comments on commit 5131074

Please sign in to comment.