Skip to content

Commit

Permalink
Image: Avoid link class loss when pasting for raw transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Dec 10, 2024
1 parent a16f2cb commit 56877d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/image/transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const schema = ( { phrasingContentSchema } ) => ( {
...imageSchema,
a: {
attributes: [ 'href', 'rel', 'target' ],
classes: [ /[\w-]*/ ],
children: imageSchema,
},
figcaption: {
Expand Down

0 comments on commit 56877d0

Please sign in to comment.