From 306ec83e0886207c341b79e73baa675e0cdc043e Mon Sep 17 00:00:00 2001 From: Devin Walker Date: Sun, 8 Oct 2017 15:36:47 +0530 Subject: [PATCH] 1. Included necessary imports 2. Added description for HTML block Resolves #2831 --- blocks/library/html/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/blocks/library/html/index.js b/blocks/library/html/index.js index 03d2ff3f386632..0b689cd9a689fb 100644 --- a/blocks/library/html/index.js +++ b/blocks/library/html/index.js @@ -15,6 +15,8 @@ import { Component } from '@wordpress/element'; import './editor.scss'; import { registerBlockType, source } from '../../api'; import BlockControls from '../../block-controls'; +import InspectorControls from '../../inspector-controls'; +import BlockDescription from '../../block-description'; const { html } = source; @@ -83,6 +85,13 @@ registerBlockType( 'core/html', { onChange={ ( event ) => setAttributes( { content: event.target.value } ) } /> } + { focus && + + +

{ __( 'Add your custom HTML code and preview it right here in the editor.' ) }

+
+
+ } ); }