diff --git a/blocks/library/html/index.js b/blocks/library/html/index.js index 554781c834cade..0ff013ed65a14a 100644 --- a/blocks/library/html/index.js +++ b/blocks/library/html/index.js @@ -16,7 +16,7 @@ import './style.scss'; import { registerBlockType, query } from '../../api'; import BlockControls from '../../block-controls'; -const { children } = query; +const { html } = query; registerBlockType( 'core/html', { title: __( 'Custom HTML' ), @@ -28,7 +28,7 @@ registerBlockType( 'core/html', { className: false, attributes: { - content: children(), + content: html(), }, edit: class extends Component { diff --git a/blocks/test/fixtures/core-html.json b/blocks/test/fixtures/core-html.json index 1a1d7f04b9489e..c5f2daf6b551bc 100644 --- a/blocks/test/fixtures/core-html.json +++ b/blocks/test/fixtures/core-html.json @@ -3,17 +3,7 @@ "uid": "_uid_0", "name": "core/html", "attributes": { - "content": [ - { - "children": "Some HTML code", - "type": "h1" - }, - "\n", - { - "children": "This text will scroll from right to left", - "type": "marquee" - } - ] + "content": "