2
votes
Accepted
Implementing onSplit/onMerge in dynamic Gutenberg Custom Blocks
Based on the use case that lead you to this, the answer is:
You don't, that's what block styles and variations are for.
Your entire block could be eliminated and replaced with this:
wp.blocks....
1
vote
Filter post_content before loading in Gutenberg editor
I've just worked on a solution for this for a friend. The Gutenburg editor calls on its internal REST API that unfortunately doesn't provide much room for manipulation.
Luckily, there's a filter ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
block-editor × 1846javascript × 232
plugin-development × 189
plugins × 107
theme-development × 83
css × 71
php × 54
images × 54
rest-api × 50
custom-post-types × 49
filters × 47
hooks × 43
editor × 43
customization × 39
templates × 33
themes × 30
post-meta × 30
posts × 29
custom-field × 29
react × 29
functions × 28
widgets × 26
advanced-custom-fields × 26
full-site-editing × 26
shortcode × 25