From c698ae10e448e416c12b06f120cca6581891f8b2 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 3 Jul 2017 22:40:07 -0700 Subject: [PATCH] Use SandBox for Custom HTML --- blocks/library/html/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blocks/library/html/index.js b/blocks/library/html/index.js index aaee705981bacd..86145271c70512 100644 --- a/blocks/library/html/index.js +++ b/blocks/library/html/index.js @@ -8,6 +8,7 @@ import TextareaAutosize from 'react-autosize-textarea'; */ import { __ } from 'i18n'; import { Component } from 'element'; +import { SandBox } from 'components'; /** * Internal dependencies @@ -95,7 +96,7 @@ registerBlockType( 'core/html', { } { preview - ?
+ ? : setAttributes( { content: event.target.value } ) }