diff --git a/src/shared/components/BlockEditor/Block.client.js b/src/shared/components/BlockEditor/Block.client.js index 4279aae..37c20e5 100644 --- a/src/shared/components/BlockEditor/Block.client.js +++ b/src/shared/components/BlockEditor/Block.client.js @@ -37,7 +37,7 @@ function useDropdownPlacement(open, triggerRef) { import { getBlockDef, listBlocks } from './blockRegistry.js'; import { inlineLength } from './inline/types.js'; import { inlineToDom, domToInline } from './inline/serialize.js'; -import { htmlToBlocks } from './inline/clipboard.js'; +import { htmlToBlocks, notionJsonToBlocks } from './inline/clipboard.js'; import { getCaretOffset, getCaretRange, @@ -544,9 +544,29 @@ const Block = forwardRef(function Block( function handlePaste(e) { e.preventDefault(); + // Notion expose ses blocs natifs via sa MIME propriétaire en plus du HTML. + // Le HTML aplatit `to_do` en `