From 40022a360e19febca1067cdc26af4c9df65caba5 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Thu, 12 Dec 2024 14:51:49 +0400 Subject: [PATCH] Image: Avoid link class loss when pasting for raw transformation (#67803) Unlinked contributors: designsimply. Co-authored-by: Mamaduka Co-authored-by: t-hamano Co-authored-by: paaljoachim Co-authored-by: talldan Co-authored-by: greatislander --- packages/block-library/src/image/transforms.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-library/src/image/transforms.js b/packages/block-library/src/image/transforms.js index 347d2408280170..32824c372efdcb 100644 --- a/packages/block-library/src/image/transforms.js +++ b/packages/block-library/src/image/transforms.js @@ -59,6 +59,7 @@ const schema = ( { phrasingContentSchema } ) => ( { ...imageSchema, a: { attributes: [ 'href', 'rel', 'target' ], + classes: [ /[\w-]*/ ], children: imageSchema, }, figcaption: {