From e4d749a8fb0d0a97ab9a2b665d41cf26ce8995db Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Mon, 8 May 2017 09:40:15 -0400 Subject: [PATCH] Test caption length when considering to show editable (#684) * Remove paragraphs from captioned content * Test caption length when considering to show editable * Treat serialized content as array * Test truthiness of children before assuming property Can be undefined for new block. We may want to look to provide default, but for now simply test truthiness. --- blocks/library/embed/index.js | 4 ++-- blocks/library/image/index.js | 4 ++-- blocks/library/quote/index.js | 8 +++++--- post-content.js | 4 ++-- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/blocks/library/embed/index.js b/blocks/library/embed/index.js index 20cbf22484ffbd..74d0be2e624788 100644 --- a/blocks/library/embed/index.js +++ b/blocks/library/embed/index.js @@ -48,7 +48,7 @@ registerBlock( 'core/embed', {

State of the Word 2016

', + '
State of the Word 2016
', '', '',