Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Move transform styles function to blockEditor package. #15572
This PR extracts a util function transformStyles available in WordPress/editor to an independent package.
This function does not depend on the editor module and this change enables us to remove the WordPress/editor dependency from the HTML block.
Removing the editor dependencies from blocks is a goal because in the widget screen editor will not be available.
How has this been tested?
I did some general smoke tests around the editor.
I agree we need to discuss this change. This function needs lots of logic ast, traversing etc that is not directly related to the editor.
youknowriad left a comment
Thinking a bit more here. While everything else is generic the transformStyles function exported in
Maybe a first step for this PR is just to move these into the block editor module and expose the