Skip to content

Commit

Permalink
Image: Avoid link class loss when pasting for raw transformation (#67803
Browse files Browse the repository at this point in the history
)


Unlinked contributors: designsimply.

Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: paaljoachim <paaljoachim@git.wordpress.org>
Co-authored-by: talldan <talldanwp@git.wordpress.org>
Co-authored-by: greatislander <greatislander@git.wordpress.org>
  • Loading branch information
6 people authored Dec 12, 2024
1 parent 8277a74 commit 40022a3
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

1 comment on commit 40022a3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 40022a3.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12294888602
📝 Reported issues:

Please sign in to comment.