Use the classic WordPress editor.
Attributes
Defined via the attributes property in block.json.
Supports
Defined via the supports property in block.json.
className:falsecustomClassName:falselock:falsereusable:falserenaming:falsevisibility:falsecustomCSS:false
Block Markup
This is a static block. The markup is saved directly in the post content.
<!-- wp:core/freeform -->
Testing freeform block with some
<div class="wp-some-class">
HTML <span style="color: red;">content</span>
</div>
<!-- /wp:core/freeform -->
Source
- block.json (reference)
- Source directory — browse
edit.js,save.js,index.php, and more.