Comments (4)
Hey @kidunot89 I think I found the issue.
I can change this line:
https://github.com/wpengine/wp-graphql-content-blocks/blob/main/includes/Field/BlockSupports/Anchor.php#L40
into:
$rendered_block = wp_unslash( $block['innerHTML'] );
from wp-graphql-content-blocks.
Hey @kidunot89 thanks for the report. Is it possible to use Anchors for Layout elements to avoid that issue in the meantime?
For example you can add an Anchor for CoreGroup
and CoreColumns
.
I'm trying to think of a way to avoid searching the innerBlocks
content for anchor ids.
Since we are rendering the whole block render_block( $block )
and then using the following $attribute_config
$attribute_config = array(
'type' => 'string',
'source' => 'attribute',
'attribute' => 'id',
'selector' => '*',
);
It will search the innerHTML as well for that id. Not sure if there is an easy way to remove the innerHTML content. Probably with regex.
from wp-graphql-content-blocks.
from wp-graphql-content-blocks.
We will be releasing this tomorrow.
from wp-graphql-content-blocks.
Related Issues (20)
- Support for Reusable blocks HOT 5
- ACF Blocks data is not displaying HOT 3
- Plugin breaks GraphQL schema if CPT slug contains dash (`-`) HOT 2
- Add support for genesis-custom-blocks HOT 16
- Why was `WPGraphQL\ContentBlocks\Blocks\Block::register_fields()` removed. HOT 7
- Fatal error after installing the plugin HOT 2
- v1.1.1 throwing error: Class "WPGraphQL\ContentBlocks\Utilities\WPGraphQLHelpers" not found HOT 9
- Possible Performance Issues HOT 24
- CoreVideo returns false for controls regardless of admin setting HOT 3
- `CoreImageAttributes.width` is type `String`, but should be a `Float` HOT 11
- Expose Rendered HTML for Themes HOT 3
- Fetching plugin blocks HOT 6
- Using the plugin as a submodule with GitHub Actions HOT 7
- `core/list-item` content attribute returns html of nested elements HOT 2
- Full size CoreImageAttributes.width & .height are null HOT 6
- Allow get_block_context_interfaces to be filtered HOT 1
- Custom block attributes not exposed HOT 2
- Can I extend this to support GravityForms? HOT 2
- Consider aligning PHPCS ruleset with WPGraphQL. HOT 7
- Bug: `BlockWithSupportsAnchor` is causing `DUPLICATE_TYPE` error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-graphql-content-blocks.