From 56877d0f82644377a59fbb82ad8b093123455fc3 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Tue, 10 Dec 2024 22:10:46 +0400 Subject: [PATCH] Image: Avoid link class loss when pasting for raw transformation --- 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: {