diff --git a/blocks/library/embed/index.js b/blocks/library/embed/index.js index c714c98ff0e47..fcae1b0d16b6e 100644 --- a/blocks/library/embed/index.js +++ b/blocks/library/embed/index.js @@ -2,7 +2,7 @@ * External dependencies */ import { parse } from 'url'; -import { includes } from 'lodash'; +import { includes, kebabCase, toLower } from 'lodash'; /** * WordPress dependencies @@ -11,6 +11,7 @@ import { __, sprintf } from '@wordpress/i18n'; import { Component, renderToString } from '@wordpress/element'; import { Button, Placeholder, Spinner, SandBox } from '@wordpress/components'; import { addQueryArgs } from '@wordpress/url'; +import classnames from 'classnames'; /** * Internal dependencies @@ -50,6 +51,12 @@ function getEmbedBlockSettings( { title, icon, category = 'embed', transforms, k align: { type: 'string', }, + type: { + type: 'string', + }, + providerNameSlug: { + type: 'string', + }, }, transforms, @@ -70,6 +77,7 @@ function getEmbedBlockSettings( { title, icon, category = 'embed', transforms, k type: '', error: false, fetching: false, + providerName: '', }; } @@ -100,6 +108,7 @@ function getEmbedBlockSettings( { title, icon, category = 'embed', transforms, k event.preventDefault(); } const { url } = this.props.attributes; + const { setAttributes } = this.props; const apiURL = addQueryArgs( wpApiSettings.root + 'oembed/1.0/proxy', { url: url, _wpnonce: wpApiSettings.nonce, @@ -114,11 +123,15 @@ function getEmbedBlockSettings( { title, icon, category = 'embed', transforms, k return; } response.json().then( ( obj ) => { - const { html, type } = obj; + const { html, type, provider_name: providerName } = obj; + const providerNameSlug = kebabCase( toLower( providerName ) ); + if ( html ) { - this.setState( { html, type } ); + this.setState( { html, type, providerNameSlug } ); + setAttributes( { type, providerNameSlug } ); } else if ( 'photo' === type ) { - this.setState( { html: this.getPhotoHtml( obj ), type } ); + this.setState( { html: this.getPhotoHtml( obj ), type, providerNameSlug } ); + setAttributes( { type, providerNameSlug } ); } else { this.setState( { error: true } ); } @@ -219,14 +232,20 @@ function getEmbedBlockSettings( { title, icon, category = 'embed', transforms, k }, save( { attributes } ) { - const { url, caption, align } = attributes; + const { url, caption, align, type, providerNameSlug } = attributes; if ( ! url ) { return; } + const embedClassName = classnames( 'wp-block-embed', { + [ `is-align${ align }` ]: align, + [ `is-type-${ type }` ]: type, + [ `is-provider-${ providerNameSlug }` ]: providerNameSlug, + } ); + return ( -
+
{ `\n${ url }\n` /* URL needs to be on its own line. */ } { caption && caption.length > 0 &&
{ caption }
}
diff --git a/blocks/test/fixtures/core-embed__animoto.html b/blocks/test/fixtures/core-embed__animoto.html index e6af9836343d1..28659a2dc86e4 100644 --- a/blocks/test/fixtures/core-embed__animoto.html +++ b/blocks/test/fixtures/core-embed__animoto.html @@ -1,5 +1,5 @@ -
+
https://animoto.com/
Embedded content from animoto
diff --git a/blocks/test/fixtures/core-embed__animoto.json b/blocks/test/fixtures/core-embed__animoto.json index 973bfe9bd485f..8b011d74700ed 100644 --- a/blocks/test/fixtures/core-embed__animoto.json +++ b/blocks/test/fixtures/core-embed__animoto.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://animoto.com/\n
Embedded content from animoto
\n
" + "originalContent": "
\n https://animoto.com/\n
Embedded content from animoto
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__animoto.parsed.json b/blocks/test/fixtures/core-embed__animoto.parsed.json index d45d1bcd8b781..082290a41a011 100644 --- a/blocks/test/fixtures/core-embed__animoto.parsed.json +++ b/blocks/test/fixtures/core-embed__animoto.parsed.json @@ -5,7 +5,7 @@ "url": "https://animoto.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://animoto.com/\n
Embedded content from animoto
\n
\n" + "innerHTML": "\n
\n https://animoto.com/\n
Embedded content from animoto
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__animoto.serialized.html b/blocks/test/fixtures/core-embed__animoto.serialized.html index e6af9836343d1..28659a2dc86e4 100644 --- a/blocks/test/fixtures/core-embed__animoto.serialized.html +++ b/blocks/test/fixtures/core-embed__animoto.serialized.html @@ -1,5 +1,5 @@ -
+
https://animoto.com/
Embedded content from animoto
diff --git a/blocks/test/fixtures/core-embed__cloudup.html b/blocks/test/fixtures/core-embed__cloudup.html index 48f824b9c95cf..c620daa63a173 100644 --- a/blocks/test/fixtures/core-embed__cloudup.html +++ b/blocks/test/fixtures/core-embed__cloudup.html @@ -1,5 +1,5 @@ -
+
https://cloudup.com/
Embedded content from cloudup
diff --git a/blocks/test/fixtures/core-embed__cloudup.json b/blocks/test/fixtures/core-embed__cloudup.json index 111dc5d58921d..5a0ed4448bfa1 100644 --- a/blocks/test/fixtures/core-embed__cloudup.json +++ b/blocks/test/fixtures/core-embed__cloudup.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://cloudup.com/\n
Embedded content from cloudup
\n
" + "originalContent": "
\n https://cloudup.com/\n
Embedded content from cloudup
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__cloudup.parsed.json b/blocks/test/fixtures/core-embed__cloudup.parsed.json index 7998747dbf0d3..fa5078eb08ea5 100644 --- a/blocks/test/fixtures/core-embed__cloudup.parsed.json +++ b/blocks/test/fixtures/core-embed__cloudup.parsed.json @@ -5,7 +5,7 @@ "url": "https://cloudup.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://cloudup.com/\n
Embedded content from cloudup
\n
\n" + "innerHTML": "\n
\n https://cloudup.com/\n
Embedded content from cloudup
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__cloudup.serialized.html b/blocks/test/fixtures/core-embed__cloudup.serialized.html index 48f824b9c95cf..c620daa63a173 100644 --- a/blocks/test/fixtures/core-embed__cloudup.serialized.html +++ b/blocks/test/fixtures/core-embed__cloudup.serialized.html @@ -1,5 +1,5 @@ -
+
https://cloudup.com/
Embedded content from cloudup
diff --git a/blocks/test/fixtures/core-embed__collegehumor.html b/blocks/test/fixtures/core-embed__collegehumor.html index e6870f568d0a7..dd479407d1bd6 100644 --- a/blocks/test/fixtures/core-embed__collegehumor.html +++ b/blocks/test/fixtures/core-embed__collegehumor.html @@ -1,5 +1,5 @@ -
+
https://collegehumor.com/
Embedded content from collegehumor
diff --git a/blocks/test/fixtures/core-embed__collegehumor.json b/blocks/test/fixtures/core-embed__collegehumor.json index cccdbc2ba161c..c7d2538359f26 100644 --- a/blocks/test/fixtures/core-embed__collegehumor.json +++ b/blocks/test/fixtures/core-embed__collegehumor.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://collegehumor.com/\n
Embedded content from collegehumor
\n
" + "originalContent": "
\n https://collegehumor.com/\n
Embedded content from collegehumor
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__collegehumor.parsed.json b/blocks/test/fixtures/core-embed__collegehumor.parsed.json index bf0bc291b037e..d532d8525ef7d 100644 --- a/blocks/test/fixtures/core-embed__collegehumor.parsed.json +++ b/blocks/test/fixtures/core-embed__collegehumor.parsed.json @@ -5,7 +5,7 @@ "url": "https://collegehumor.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://collegehumor.com/\n
Embedded content from collegehumor
\n
\n" + "innerHTML": "\n
\n https://collegehumor.com/\n
Embedded content from collegehumor
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__collegehumor.serialized.html b/blocks/test/fixtures/core-embed__collegehumor.serialized.html index e6870f568d0a7..dd479407d1bd6 100644 --- a/blocks/test/fixtures/core-embed__collegehumor.serialized.html +++ b/blocks/test/fixtures/core-embed__collegehumor.serialized.html @@ -1,5 +1,5 @@ -
+
https://collegehumor.com/
Embedded content from collegehumor
diff --git a/blocks/test/fixtures/core-embed__dailymotion.html b/blocks/test/fixtures/core-embed__dailymotion.html index 1cf3525567770..a4c0eebf6ba60 100644 --- a/blocks/test/fixtures/core-embed__dailymotion.html +++ b/blocks/test/fixtures/core-embed__dailymotion.html @@ -1,5 +1,5 @@ -
+
https://dailymotion.com/
Embedded content from dailymotion
diff --git a/blocks/test/fixtures/core-embed__dailymotion.json b/blocks/test/fixtures/core-embed__dailymotion.json index d47c9e592c7f6..73b58b18f8c55 100644 --- a/blocks/test/fixtures/core-embed__dailymotion.json +++ b/blocks/test/fixtures/core-embed__dailymotion.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://dailymotion.com/\n
Embedded content from dailymotion
\n
" + "originalContent": "
\n https://dailymotion.com/\n
Embedded content from dailymotion
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__dailymotion.parsed.json b/blocks/test/fixtures/core-embed__dailymotion.parsed.json index a5cf7f0953053..bbbc737784bca 100644 --- a/blocks/test/fixtures/core-embed__dailymotion.parsed.json +++ b/blocks/test/fixtures/core-embed__dailymotion.parsed.json @@ -5,7 +5,7 @@ "url": "https://dailymotion.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://dailymotion.com/\n
Embedded content from dailymotion
\n
\n" + "innerHTML": "\n
\n https://dailymotion.com/\n
Embedded content from dailymotion
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__dailymotion.serialized.html b/blocks/test/fixtures/core-embed__dailymotion.serialized.html index 1cf3525567770..a4c0eebf6ba60 100644 --- a/blocks/test/fixtures/core-embed__dailymotion.serialized.html +++ b/blocks/test/fixtures/core-embed__dailymotion.serialized.html @@ -1,5 +1,5 @@ -
+
https://dailymotion.com/
Embedded content from dailymotion
diff --git a/blocks/test/fixtures/core-embed__facebook.html b/blocks/test/fixtures/core-embed__facebook.html index a2dd1ce7dd9e9..c165d2d735f0f 100644 --- a/blocks/test/fixtures/core-embed__facebook.html +++ b/blocks/test/fixtures/core-embed__facebook.html @@ -1,5 +1,5 @@ -
+
https://facebook.com/
Embedded content from facebook
diff --git a/blocks/test/fixtures/core-embed__facebook.json b/blocks/test/fixtures/core-embed__facebook.json index 15e57c9103b72..0c3e22402c48d 100644 --- a/blocks/test/fixtures/core-embed__facebook.json +++ b/blocks/test/fixtures/core-embed__facebook.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://facebook.com/\n
Embedded content from facebook
\n
" + "originalContent": "
\n https://facebook.com/\n
Embedded content from facebook
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__facebook.parsed.json b/blocks/test/fixtures/core-embed__facebook.parsed.json index 073e55ea166be..531afd3ac5d65 100644 --- a/blocks/test/fixtures/core-embed__facebook.parsed.json +++ b/blocks/test/fixtures/core-embed__facebook.parsed.json @@ -5,7 +5,7 @@ "url": "https://facebook.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://facebook.com/\n
Embedded content from facebook
\n
\n" + "innerHTML": "\n
\n https://facebook.com/\n
Embedded content from facebook
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__facebook.serialized.html b/blocks/test/fixtures/core-embed__facebook.serialized.html index a2dd1ce7dd9e9..c165d2d735f0f 100644 --- a/blocks/test/fixtures/core-embed__facebook.serialized.html +++ b/blocks/test/fixtures/core-embed__facebook.serialized.html @@ -1,5 +1,5 @@ -
+
https://facebook.com/
Embedded content from facebook
diff --git a/blocks/test/fixtures/core-embed__flickr.html b/blocks/test/fixtures/core-embed__flickr.html index b6d133afc5d35..d6321044ed3b1 100644 --- a/blocks/test/fixtures/core-embed__flickr.html +++ b/blocks/test/fixtures/core-embed__flickr.html @@ -1,5 +1,5 @@ -
+
https://flickr.com/
Embedded content from flickr
diff --git a/blocks/test/fixtures/core-embed__flickr.json b/blocks/test/fixtures/core-embed__flickr.json index 3d202ece36f59..ee5abd2f2f57b 100644 --- a/blocks/test/fixtures/core-embed__flickr.json +++ b/blocks/test/fixtures/core-embed__flickr.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://flickr.com/\n
Embedded content from flickr
\n
" + "originalContent": "
\n https://flickr.com/\n
Embedded content from flickr
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__flickr.parsed.json b/blocks/test/fixtures/core-embed__flickr.parsed.json index 81862ea825a5e..576b91e970b29 100644 --- a/blocks/test/fixtures/core-embed__flickr.parsed.json +++ b/blocks/test/fixtures/core-embed__flickr.parsed.json @@ -5,7 +5,7 @@ "url": "https://flickr.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://flickr.com/\n
Embedded content from flickr
\n
\n" + "innerHTML": "\n
\n https://flickr.com/\n
Embedded content from flickr
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__flickr.serialized.html b/blocks/test/fixtures/core-embed__flickr.serialized.html index b6d133afc5d35..d6321044ed3b1 100644 --- a/blocks/test/fixtures/core-embed__flickr.serialized.html +++ b/blocks/test/fixtures/core-embed__flickr.serialized.html @@ -1,5 +1,5 @@ -
+
https://flickr.com/
Embedded content from flickr
diff --git a/blocks/test/fixtures/core-embed__funnyordie.html b/blocks/test/fixtures/core-embed__funnyordie.html index 21b1f2bf4aacf..1a058f78cdf70 100644 --- a/blocks/test/fixtures/core-embed__funnyordie.html +++ b/blocks/test/fixtures/core-embed__funnyordie.html @@ -1,5 +1,5 @@ -
+
https://funnyordie.com/
Embedded content from funnyordie
diff --git a/blocks/test/fixtures/core-embed__funnyordie.json b/blocks/test/fixtures/core-embed__funnyordie.json index 8cef138ad02cd..6d2991b0f553c 100644 --- a/blocks/test/fixtures/core-embed__funnyordie.json +++ b/blocks/test/fixtures/core-embed__funnyordie.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://funnyordie.com/\n
Embedded content from funnyordie
\n
" + "originalContent": "
\n https://funnyordie.com/\n
Embedded content from funnyordie
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__funnyordie.parsed.json b/blocks/test/fixtures/core-embed__funnyordie.parsed.json index 00102f573452b..d459749b79b9e 100644 --- a/blocks/test/fixtures/core-embed__funnyordie.parsed.json +++ b/blocks/test/fixtures/core-embed__funnyordie.parsed.json @@ -5,7 +5,7 @@ "url": "https://funnyordie.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://funnyordie.com/\n
Embedded content from funnyordie
\n
\n" + "innerHTML": "\n
\n https://funnyordie.com/\n
Embedded content from funnyordie
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__funnyordie.serialized.html b/blocks/test/fixtures/core-embed__funnyordie.serialized.html index 21b1f2bf4aacf..1a058f78cdf70 100644 --- a/blocks/test/fixtures/core-embed__funnyordie.serialized.html +++ b/blocks/test/fixtures/core-embed__funnyordie.serialized.html @@ -1,5 +1,5 @@ -
+
https://funnyordie.com/
Embedded content from funnyordie
diff --git a/blocks/test/fixtures/core-embed__hulu.html b/blocks/test/fixtures/core-embed__hulu.html index 29a851edcdd0b..fe12a05c1ef3c 100644 --- a/blocks/test/fixtures/core-embed__hulu.html +++ b/blocks/test/fixtures/core-embed__hulu.html @@ -1,5 +1,5 @@ -
+
https://hulu.com/
Embedded content from hulu
diff --git a/blocks/test/fixtures/core-embed__hulu.json b/blocks/test/fixtures/core-embed__hulu.json index 0fb42064add73..17fbc3ac88cab 100644 --- a/blocks/test/fixtures/core-embed__hulu.json +++ b/blocks/test/fixtures/core-embed__hulu.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://hulu.com/\n
Embedded content from hulu
\n
" + "originalContent": "
\n https://hulu.com/\n
Embedded content from hulu
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__hulu.parsed.json b/blocks/test/fixtures/core-embed__hulu.parsed.json index 4d23f03236b11..3b1b1df4de1f9 100644 --- a/blocks/test/fixtures/core-embed__hulu.parsed.json +++ b/blocks/test/fixtures/core-embed__hulu.parsed.json @@ -5,7 +5,7 @@ "url": "https://hulu.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://hulu.com/\n
Embedded content from hulu
\n
\n" + "innerHTML": "\n
\n https://hulu.com/\n
Embedded content from hulu
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__hulu.serialized.html b/blocks/test/fixtures/core-embed__hulu.serialized.html index 29a851edcdd0b..fe12a05c1ef3c 100644 --- a/blocks/test/fixtures/core-embed__hulu.serialized.html +++ b/blocks/test/fixtures/core-embed__hulu.serialized.html @@ -1,5 +1,5 @@ -
+
https://hulu.com/
Embedded content from hulu
diff --git a/blocks/test/fixtures/core-embed__imgur.html b/blocks/test/fixtures/core-embed__imgur.html index 9a05b120d4394..a780ad38d6974 100644 --- a/blocks/test/fixtures/core-embed__imgur.html +++ b/blocks/test/fixtures/core-embed__imgur.html @@ -1,5 +1,5 @@ -
+
https://imgur.com/
Embedded content from imgur
diff --git a/blocks/test/fixtures/core-embed__imgur.json b/blocks/test/fixtures/core-embed__imgur.json index b1d5ca44fc301..6d6ce18ea3ec3 100644 --- a/blocks/test/fixtures/core-embed__imgur.json +++ b/blocks/test/fixtures/core-embed__imgur.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://imgur.com/\n
Embedded content from imgur
\n
" + "originalContent": "
\n https://imgur.com/\n
Embedded content from imgur
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__imgur.parsed.json b/blocks/test/fixtures/core-embed__imgur.parsed.json index 2adba6656aa07..e442594b81bc3 100644 --- a/blocks/test/fixtures/core-embed__imgur.parsed.json +++ b/blocks/test/fixtures/core-embed__imgur.parsed.json @@ -5,7 +5,7 @@ "url": "https://imgur.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://imgur.com/\n
Embedded content from imgur
\n
\n" + "innerHTML": "\n
\n https://imgur.com/\n
Embedded content from imgur
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__imgur.serialized.html b/blocks/test/fixtures/core-embed__imgur.serialized.html index 9a05b120d4394..a780ad38d6974 100644 --- a/blocks/test/fixtures/core-embed__imgur.serialized.html +++ b/blocks/test/fixtures/core-embed__imgur.serialized.html @@ -1,5 +1,5 @@ -
+
https://imgur.com/
Embedded content from imgur
diff --git a/blocks/test/fixtures/core-embed__instagram.html b/blocks/test/fixtures/core-embed__instagram.html index bb2c9f04c0dbc..ec3e2f507a9c5 100644 --- a/blocks/test/fixtures/core-embed__instagram.html +++ b/blocks/test/fixtures/core-embed__instagram.html @@ -1,5 +1,5 @@ -
+
https://instagram.com/
Embedded content from instagram
diff --git a/blocks/test/fixtures/core-embed__instagram.json b/blocks/test/fixtures/core-embed__instagram.json index ebaf856850fdb..5efe834e32d17 100644 --- a/blocks/test/fixtures/core-embed__instagram.json +++ b/blocks/test/fixtures/core-embed__instagram.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://instagram.com/\n
Embedded content from instagram
\n
" + "originalContent": "
\n https://instagram.com/\n
Embedded content from instagram
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__instagram.parsed.json b/blocks/test/fixtures/core-embed__instagram.parsed.json index dac92cf159180..e8eccd10164cc 100644 --- a/blocks/test/fixtures/core-embed__instagram.parsed.json +++ b/blocks/test/fixtures/core-embed__instagram.parsed.json @@ -5,7 +5,7 @@ "url": "https://instagram.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://instagram.com/\n
Embedded content from instagram
\n
\n" + "innerHTML": "\n
\n https://instagram.com/\n
Embedded content from instagram
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__instagram.serialized.html b/blocks/test/fixtures/core-embed__instagram.serialized.html index bb2c9f04c0dbc..ec3e2f507a9c5 100644 --- a/blocks/test/fixtures/core-embed__instagram.serialized.html +++ b/blocks/test/fixtures/core-embed__instagram.serialized.html @@ -1,5 +1,5 @@ -
+
https://instagram.com/
Embedded content from instagram
diff --git a/blocks/test/fixtures/core-embed__issuu.html b/blocks/test/fixtures/core-embed__issuu.html index 890348374d398..8a283e60ece58 100644 --- a/blocks/test/fixtures/core-embed__issuu.html +++ b/blocks/test/fixtures/core-embed__issuu.html @@ -1,5 +1,5 @@ -
+
https://issuu.com/
Embedded content from issuu
diff --git a/blocks/test/fixtures/core-embed__issuu.json b/blocks/test/fixtures/core-embed__issuu.json index 406b16d852d60..62f641f67ec27 100644 --- a/blocks/test/fixtures/core-embed__issuu.json +++ b/blocks/test/fixtures/core-embed__issuu.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://issuu.com/\n
Embedded content from issuu
\n
" + "originalContent": "
\n https://issuu.com/\n
Embedded content from issuu
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__issuu.parsed.json b/blocks/test/fixtures/core-embed__issuu.parsed.json index 0851cc9a75e3f..387efaf9cebea 100644 --- a/blocks/test/fixtures/core-embed__issuu.parsed.json +++ b/blocks/test/fixtures/core-embed__issuu.parsed.json @@ -5,7 +5,7 @@ "url": "https://issuu.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://issuu.com/\n
Embedded content from issuu
\n
\n" + "innerHTML": "\n
\n https://issuu.com/\n
Embedded content from issuu
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__issuu.serialized.html b/blocks/test/fixtures/core-embed__issuu.serialized.html index 890348374d398..8a283e60ece58 100644 --- a/blocks/test/fixtures/core-embed__issuu.serialized.html +++ b/blocks/test/fixtures/core-embed__issuu.serialized.html @@ -1,5 +1,5 @@ -
+
https://issuu.com/
Embedded content from issuu
diff --git a/blocks/test/fixtures/core-embed__kickstarter.html b/blocks/test/fixtures/core-embed__kickstarter.html index f3034e6fd9688..d3824196a7b0d 100644 --- a/blocks/test/fixtures/core-embed__kickstarter.html +++ b/blocks/test/fixtures/core-embed__kickstarter.html @@ -1,5 +1,5 @@ -
+
https://kickstarter.com/
Embedded content from kickstarter
diff --git a/blocks/test/fixtures/core-embed__kickstarter.json b/blocks/test/fixtures/core-embed__kickstarter.json index a31b8342ab392..4b7234ac3bbf3 100644 --- a/blocks/test/fixtures/core-embed__kickstarter.json +++ b/blocks/test/fixtures/core-embed__kickstarter.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://kickstarter.com/\n
Embedded content from kickstarter
\n
" + "originalContent": "
\n https://kickstarter.com/\n
Embedded content from kickstarter
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__kickstarter.parsed.json b/blocks/test/fixtures/core-embed__kickstarter.parsed.json index 2c80810017403..6861b75c6dd2e 100644 --- a/blocks/test/fixtures/core-embed__kickstarter.parsed.json +++ b/blocks/test/fixtures/core-embed__kickstarter.parsed.json @@ -5,7 +5,7 @@ "url": "https://kickstarter.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://kickstarter.com/\n
Embedded content from kickstarter
\n
\n" + "innerHTML": "\n
\n https://kickstarter.com/\n
Embedded content from kickstarter
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__kickstarter.serialized.html b/blocks/test/fixtures/core-embed__kickstarter.serialized.html index f3034e6fd9688..d3824196a7b0d 100644 --- a/blocks/test/fixtures/core-embed__kickstarter.serialized.html +++ b/blocks/test/fixtures/core-embed__kickstarter.serialized.html @@ -1,5 +1,5 @@ -
+
https://kickstarter.com/
Embedded content from kickstarter
diff --git a/blocks/test/fixtures/core-embed__meetup-com.html b/blocks/test/fixtures/core-embed__meetup-com.html index 60334419efc21..18508d9155d0e 100644 --- a/blocks/test/fixtures/core-embed__meetup-com.html +++ b/blocks/test/fixtures/core-embed__meetup-com.html @@ -1,5 +1,5 @@ -
+
https://meetup.com/
Embedded content from meetup-com
diff --git a/blocks/test/fixtures/core-embed__meetup-com.json b/blocks/test/fixtures/core-embed__meetup-com.json index 574330da51c36..e6e5246f29ade 100644 --- a/blocks/test/fixtures/core-embed__meetup-com.json +++ b/blocks/test/fixtures/core-embed__meetup-com.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://meetup.com/\n
Embedded content from meetup-com
\n
" + "originalContent": "
\n https://meetup.com/\n
Embedded content from meetup-com
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__meetup-com.parsed.json b/blocks/test/fixtures/core-embed__meetup-com.parsed.json index 49b958e189185..280fac78e9fad 100644 --- a/blocks/test/fixtures/core-embed__meetup-com.parsed.json +++ b/blocks/test/fixtures/core-embed__meetup-com.parsed.json @@ -5,7 +5,7 @@ "url": "https://meetup.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://meetup.com/\n
Embedded content from meetup-com
\n
\n" + "innerHTML": "\n
\n https://meetup.com/\n
Embedded content from meetup-com
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__meetup-com.serialized.html b/blocks/test/fixtures/core-embed__meetup-com.serialized.html index 60334419efc21..18508d9155d0e 100644 --- a/blocks/test/fixtures/core-embed__meetup-com.serialized.html +++ b/blocks/test/fixtures/core-embed__meetup-com.serialized.html @@ -1,5 +1,5 @@ -
+
https://meetup.com/
Embedded content from meetup-com
diff --git a/blocks/test/fixtures/core-embed__mixcloud.html b/blocks/test/fixtures/core-embed__mixcloud.html index f194562551703..fc27ddebb7f5b 100644 --- a/blocks/test/fixtures/core-embed__mixcloud.html +++ b/blocks/test/fixtures/core-embed__mixcloud.html @@ -1,5 +1,5 @@ -
+
https://mixcloud.com/
Embedded content from mixcloud
diff --git a/blocks/test/fixtures/core-embed__mixcloud.json b/blocks/test/fixtures/core-embed__mixcloud.json index c234164d20ee4..9a0cf0a53418a 100644 --- a/blocks/test/fixtures/core-embed__mixcloud.json +++ b/blocks/test/fixtures/core-embed__mixcloud.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://mixcloud.com/\n
Embedded content from mixcloud
\n
" + "originalContent": "
\n https://mixcloud.com/\n
Embedded content from mixcloud
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__mixcloud.parsed.json b/blocks/test/fixtures/core-embed__mixcloud.parsed.json index 13624bcba4ec4..f5b56e417c1b8 100644 --- a/blocks/test/fixtures/core-embed__mixcloud.parsed.json +++ b/blocks/test/fixtures/core-embed__mixcloud.parsed.json @@ -5,7 +5,7 @@ "url": "https://mixcloud.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://mixcloud.com/\n
Embedded content from mixcloud
\n
\n" + "innerHTML": "\n
\n https://mixcloud.com/\n
Embedded content from mixcloud
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__mixcloud.serialized.html b/blocks/test/fixtures/core-embed__mixcloud.serialized.html index f194562551703..fc27ddebb7f5b 100644 --- a/blocks/test/fixtures/core-embed__mixcloud.serialized.html +++ b/blocks/test/fixtures/core-embed__mixcloud.serialized.html @@ -1,5 +1,5 @@ -
+
https://mixcloud.com/
Embedded content from mixcloud
diff --git a/blocks/test/fixtures/core-embed__photobucket.html b/blocks/test/fixtures/core-embed__photobucket.html index af884e8a6be15..6fe11f9304366 100644 --- a/blocks/test/fixtures/core-embed__photobucket.html +++ b/blocks/test/fixtures/core-embed__photobucket.html @@ -1,5 +1,5 @@ -
+
https://photobucket.com/
Embedded content from photobucket
diff --git a/blocks/test/fixtures/core-embed__photobucket.json b/blocks/test/fixtures/core-embed__photobucket.json index 76b33d9373e52..06f6ad166720e 100644 --- a/blocks/test/fixtures/core-embed__photobucket.json +++ b/blocks/test/fixtures/core-embed__photobucket.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://photobucket.com/\n
Embedded content from photobucket
\n
" + "originalContent": "
\n https://photobucket.com/\n
Embedded content from photobucket
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__photobucket.parsed.json b/blocks/test/fixtures/core-embed__photobucket.parsed.json index f86f120e4e3ab..b8ebe92697150 100644 --- a/blocks/test/fixtures/core-embed__photobucket.parsed.json +++ b/blocks/test/fixtures/core-embed__photobucket.parsed.json @@ -5,7 +5,7 @@ "url": "https://photobucket.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://photobucket.com/\n
Embedded content from photobucket
\n
\n" + "innerHTML": "\n
\n https://photobucket.com/\n
Embedded content from photobucket
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__photobucket.serialized.html b/blocks/test/fixtures/core-embed__photobucket.serialized.html index af884e8a6be15..6fe11f9304366 100644 --- a/blocks/test/fixtures/core-embed__photobucket.serialized.html +++ b/blocks/test/fixtures/core-embed__photobucket.serialized.html @@ -1,5 +1,5 @@ -
+
https://photobucket.com/
Embedded content from photobucket
diff --git a/blocks/test/fixtures/core-embed__polldaddy.html b/blocks/test/fixtures/core-embed__polldaddy.html index 32b560621b43c..415c6e708a8c2 100644 --- a/blocks/test/fixtures/core-embed__polldaddy.html +++ b/blocks/test/fixtures/core-embed__polldaddy.html @@ -1,5 +1,5 @@ -
+
https://polldaddy.com/
Embedded content from polldaddy
diff --git a/blocks/test/fixtures/core-embed__polldaddy.json b/blocks/test/fixtures/core-embed__polldaddy.json index f355eb0f8e41e..535716f60c12d 100644 --- a/blocks/test/fixtures/core-embed__polldaddy.json +++ b/blocks/test/fixtures/core-embed__polldaddy.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://polldaddy.com/\n
Embedded content from polldaddy
\n
" + "originalContent": "
\n https://polldaddy.com/\n
Embedded content from polldaddy
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__polldaddy.parsed.json b/blocks/test/fixtures/core-embed__polldaddy.parsed.json index 63cdb3dfca22e..60d4c2d3a50f2 100644 --- a/blocks/test/fixtures/core-embed__polldaddy.parsed.json +++ b/blocks/test/fixtures/core-embed__polldaddy.parsed.json @@ -5,7 +5,7 @@ "url": "https://polldaddy.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://polldaddy.com/\n
Embedded content from polldaddy
\n
\n" + "innerHTML": "\n
\n https://polldaddy.com/\n
Embedded content from polldaddy
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__polldaddy.serialized.html b/blocks/test/fixtures/core-embed__polldaddy.serialized.html index 32b560621b43c..415c6e708a8c2 100644 --- a/blocks/test/fixtures/core-embed__polldaddy.serialized.html +++ b/blocks/test/fixtures/core-embed__polldaddy.serialized.html @@ -1,5 +1,5 @@ -
+
https://polldaddy.com/
Embedded content from polldaddy
diff --git a/blocks/test/fixtures/core-embed__reddit.html b/blocks/test/fixtures/core-embed__reddit.html index d498ea438065d..8c6ccaae21a45 100644 --- a/blocks/test/fixtures/core-embed__reddit.html +++ b/blocks/test/fixtures/core-embed__reddit.html @@ -1,5 +1,5 @@ -
+
https://reddit.com/
Embedded content from reddit
diff --git a/blocks/test/fixtures/core-embed__reddit.json b/blocks/test/fixtures/core-embed__reddit.json index 516155b3c50d1..a7fd9e6d55f87 100644 --- a/blocks/test/fixtures/core-embed__reddit.json +++ b/blocks/test/fixtures/core-embed__reddit.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://reddit.com/\n
Embedded content from reddit
\n
" + "originalContent": "
\n https://reddit.com/\n
Embedded content from reddit
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__reddit.parsed.json b/blocks/test/fixtures/core-embed__reddit.parsed.json index e8481f2537324..557f0477593b0 100644 --- a/blocks/test/fixtures/core-embed__reddit.parsed.json +++ b/blocks/test/fixtures/core-embed__reddit.parsed.json @@ -5,7 +5,7 @@ "url": "https://reddit.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://reddit.com/\n
Embedded content from reddit
\n
\n" + "innerHTML": "\n
\n https://reddit.com/\n
Embedded content from reddit
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__reddit.serialized.html b/blocks/test/fixtures/core-embed__reddit.serialized.html index d498ea438065d..8c6ccaae21a45 100644 --- a/blocks/test/fixtures/core-embed__reddit.serialized.html +++ b/blocks/test/fixtures/core-embed__reddit.serialized.html @@ -1,5 +1,5 @@ -
+
https://reddit.com/
Embedded content from reddit
diff --git a/blocks/test/fixtures/core-embed__reverbnation.html b/blocks/test/fixtures/core-embed__reverbnation.html index 3897cf035426b..6369c9ceacfe4 100644 --- a/blocks/test/fixtures/core-embed__reverbnation.html +++ b/blocks/test/fixtures/core-embed__reverbnation.html @@ -1,5 +1,5 @@ -
+
https://reverbnation.com/
Embedded content from reverbnation
diff --git a/blocks/test/fixtures/core-embed__reverbnation.json b/blocks/test/fixtures/core-embed__reverbnation.json index f76235a112012..ece7946d085ed 100644 --- a/blocks/test/fixtures/core-embed__reverbnation.json +++ b/blocks/test/fixtures/core-embed__reverbnation.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://reverbnation.com/\n
Embedded content from reverbnation
\n
" + "originalContent": "
\n https://reverbnation.com/\n
Embedded content from reverbnation
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__reverbnation.parsed.json b/blocks/test/fixtures/core-embed__reverbnation.parsed.json index 0fd6ba77128da..84b98dc0c1f00 100644 --- a/blocks/test/fixtures/core-embed__reverbnation.parsed.json +++ b/blocks/test/fixtures/core-embed__reverbnation.parsed.json @@ -5,7 +5,7 @@ "url": "https://reverbnation.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://reverbnation.com/\n
Embedded content from reverbnation
\n
\n" + "innerHTML": "\n
\n https://reverbnation.com/\n
Embedded content from reverbnation
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__reverbnation.serialized.html b/blocks/test/fixtures/core-embed__reverbnation.serialized.html index 3897cf035426b..6369c9ceacfe4 100644 --- a/blocks/test/fixtures/core-embed__reverbnation.serialized.html +++ b/blocks/test/fixtures/core-embed__reverbnation.serialized.html @@ -1,5 +1,5 @@ -
+
https://reverbnation.com/
Embedded content from reverbnation
diff --git a/blocks/test/fixtures/core-embed__screencast.html b/blocks/test/fixtures/core-embed__screencast.html index 31a004a6d1c1e..c75a8d4cf8471 100644 --- a/blocks/test/fixtures/core-embed__screencast.html +++ b/blocks/test/fixtures/core-embed__screencast.html @@ -1,5 +1,5 @@ -
+
https://screencast.com/
Embedded content from screencast
diff --git a/blocks/test/fixtures/core-embed__screencast.json b/blocks/test/fixtures/core-embed__screencast.json index 8fe863a7dcc65..76c63405b326d 100644 --- a/blocks/test/fixtures/core-embed__screencast.json +++ b/blocks/test/fixtures/core-embed__screencast.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://screencast.com/\n
Embedded content from screencast
\n
" + "originalContent": "
\n https://screencast.com/\n
Embedded content from screencast
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__screencast.parsed.json b/blocks/test/fixtures/core-embed__screencast.parsed.json index fa916f32facb5..120d382bfc2a8 100644 --- a/blocks/test/fixtures/core-embed__screencast.parsed.json +++ b/blocks/test/fixtures/core-embed__screencast.parsed.json @@ -5,7 +5,7 @@ "url": "https://screencast.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://screencast.com/\n
Embedded content from screencast
\n
\n" + "innerHTML": "\n
\n https://screencast.com/\n
Embedded content from screencast
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__screencast.serialized.html b/blocks/test/fixtures/core-embed__screencast.serialized.html index 31a004a6d1c1e..c75a8d4cf8471 100644 --- a/blocks/test/fixtures/core-embed__screencast.serialized.html +++ b/blocks/test/fixtures/core-embed__screencast.serialized.html @@ -1,5 +1,5 @@ -
+
https://screencast.com/
Embedded content from screencast
diff --git a/blocks/test/fixtures/core-embed__scribd.html b/blocks/test/fixtures/core-embed__scribd.html index 5adcd8d0a55ae..2b8290aafd05d 100644 --- a/blocks/test/fixtures/core-embed__scribd.html +++ b/blocks/test/fixtures/core-embed__scribd.html @@ -1,5 +1,5 @@ -
+
https://scribd.com/
Embedded content from scribd
diff --git a/blocks/test/fixtures/core-embed__scribd.json b/blocks/test/fixtures/core-embed__scribd.json index ce090cf5d7a51..63f639199cd40 100644 --- a/blocks/test/fixtures/core-embed__scribd.json +++ b/blocks/test/fixtures/core-embed__scribd.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://scribd.com/\n
Embedded content from scribd
\n
" + "originalContent": "
\n https://scribd.com/\n
Embedded content from scribd
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__scribd.parsed.json b/blocks/test/fixtures/core-embed__scribd.parsed.json index 7c59e126eedf5..b9691cc23f2eb 100644 --- a/blocks/test/fixtures/core-embed__scribd.parsed.json +++ b/blocks/test/fixtures/core-embed__scribd.parsed.json @@ -5,7 +5,7 @@ "url": "https://scribd.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://scribd.com/\n
Embedded content from scribd
\n
\n" + "innerHTML": "\n
\n https://scribd.com/\n
Embedded content from scribd
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__scribd.serialized.html b/blocks/test/fixtures/core-embed__scribd.serialized.html index 5adcd8d0a55ae..2b8290aafd05d 100644 --- a/blocks/test/fixtures/core-embed__scribd.serialized.html +++ b/blocks/test/fixtures/core-embed__scribd.serialized.html @@ -1,5 +1,5 @@ -
+
https://scribd.com/
Embedded content from scribd
diff --git a/blocks/test/fixtures/core-embed__slideshare.html b/blocks/test/fixtures/core-embed__slideshare.html index 1149779e78c7e..5347105842bfb 100644 --- a/blocks/test/fixtures/core-embed__slideshare.html +++ b/blocks/test/fixtures/core-embed__slideshare.html @@ -1,5 +1,5 @@ -
+
https://slideshare.com/
Embedded content from slideshare
diff --git a/blocks/test/fixtures/core-embed__slideshare.json b/blocks/test/fixtures/core-embed__slideshare.json index 097f06411708f..a23a07895c584 100644 --- a/blocks/test/fixtures/core-embed__slideshare.json +++ b/blocks/test/fixtures/core-embed__slideshare.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://slideshare.com/\n
Embedded content from slideshare
\n
" + "originalContent": "
\n https://slideshare.com/\n
Embedded content from slideshare
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__slideshare.parsed.json b/blocks/test/fixtures/core-embed__slideshare.parsed.json index 2ec51b7245dea..a27c5e1d3caa4 100644 --- a/blocks/test/fixtures/core-embed__slideshare.parsed.json +++ b/blocks/test/fixtures/core-embed__slideshare.parsed.json @@ -5,7 +5,7 @@ "url": "https://slideshare.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://slideshare.com/\n
Embedded content from slideshare
\n
\n" + "innerHTML": "\n
\n https://slideshare.com/\n
Embedded content from slideshare
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__slideshare.serialized.html b/blocks/test/fixtures/core-embed__slideshare.serialized.html index 1149779e78c7e..5347105842bfb 100644 --- a/blocks/test/fixtures/core-embed__slideshare.serialized.html +++ b/blocks/test/fixtures/core-embed__slideshare.serialized.html @@ -1,5 +1,5 @@ -
+
https://slideshare.com/
Embedded content from slideshare
diff --git a/blocks/test/fixtures/core-embed__smugmug.html b/blocks/test/fixtures/core-embed__smugmug.html index 01abea919b0d1..cf996cb5f3d43 100644 --- a/blocks/test/fixtures/core-embed__smugmug.html +++ b/blocks/test/fixtures/core-embed__smugmug.html @@ -1,5 +1,5 @@ -
+
https://smugmug.com/
Embedded content from smugmug
diff --git a/blocks/test/fixtures/core-embed__smugmug.json b/blocks/test/fixtures/core-embed__smugmug.json index 72d3442ae9210..b0ff2bddfcc3b 100644 --- a/blocks/test/fixtures/core-embed__smugmug.json +++ b/blocks/test/fixtures/core-embed__smugmug.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://smugmug.com/\n
Embedded content from smugmug
\n
" + "originalContent": "
\n https://smugmug.com/\n
Embedded content from smugmug
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__smugmug.parsed.json b/blocks/test/fixtures/core-embed__smugmug.parsed.json index d9b14d399780a..1ca73be2af3fb 100644 --- a/blocks/test/fixtures/core-embed__smugmug.parsed.json +++ b/blocks/test/fixtures/core-embed__smugmug.parsed.json @@ -5,7 +5,7 @@ "url": "https://smugmug.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://smugmug.com/\n
Embedded content from smugmug
\n
\n" + "innerHTML": "\n
\n https://smugmug.com/\n
Embedded content from smugmug
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__smugmug.serialized.html b/blocks/test/fixtures/core-embed__smugmug.serialized.html index 01abea919b0d1..cf996cb5f3d43 100644 --- a/blocks/test/fixtures/core-embed__smugmug.serialized.html +++ b/blocks/test/fixtures/core-embed__smugmug.serialized.html @@ -1,5 +1,5 @@ -
+
https://smugmug.com/
Embedded content from smugmug
diff --git a/blocks/test/fixtures/core-embed__soundcloud.html b/blocks/test/fixtures/core-embed__soundcloud.html index f5414ef81c99c..cd55140f47e44 100644 --- a/blocks/test/fixtures/core-embed__soundcloud.html +++ b/blocks/test/fixtures/core-embed__soundcloud.html @@ -1,5 +1,5 @@ -
+
https://soundcloud.com/
Embedded content from soundcloud
diff --git a/blocks/test/fixtures/core-embed__soundcloud.json b/blocks/test/fixtures/core-embed__soundcloud.json index 1fdfe140b3ffe..d7cf59e41810c 100644 --- a/blocks/test/fixtures/core-embed__soundcloud.json +++ b/blocks/test/fixtures/core-embed__soundcloud.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://soundcloud.com/\n
Embedded content from soundcloud
\n
" + "originalContent": "
\n https://soundcloud.com/\n
Embedded content from soundcloud
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__soundcloud.parsed.json b/blocks/test/fixtures/core-embed__soundcloud.parsed.json index 77867585d141c..c75573fcf1b48 100644 --- a/blocks/test/fixtures/core-embed__soundcloud.parsed.json +++ b/blocks/test/fixtures/core-embed__soundcloud.parsed.json @@ -5,7 +5,7 @@ "url": "https://soundcloud.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://soundcloud.com/\n
Embedded content from soundcloud
\n
\n" + "innerHTML": "\n
\n https://soundcloud.com/\n
Embedded content from soundcloud
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__soundcloud.serialized.html b/blocks/test/fixtures/core-embed__soundcloud.serialized.html index f5414ef81c99c..cd55140f47e44 100644 --- a/blocks/test/fixtures/core-embed__soundcloud.serialized.html +++ b/blocks/test/fixtures/core-embed__soundcloud.serialized.html @@ -1,5 +1,5 @@ -
+
https://soundcloud.com/
Embedded content from soundcloud
diff --git a/blocks/test/fixtures/core-embed__speaker.html b/blocks/test/fixtures/core-embed__speaker.html index 2e3b4592cbc35..32d26ad064c76 100644 --- a/blocks/test/fixtures/core-embed__speaker.html +++ b/blocks/test/fixtures/core-embed__speaker.html @@ -1,5 +1,5 @@ -
+
https://speaker.com/
Embedded content from speaker
diff --git a/blocks/test/fixtures/core-embed__speaker.json b/blocks/test/fixtures/core-embed__speaker.json index 1998640c39583..ab9f9d5cd6d39 100644 --- a/blocks/test/fixtures/core-embed__speaker.json +++ b/blocks/test/fixtures/core-embed__speaker.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://speaker.com/\n
Embedded content from speaker
\n
" + "originalContent": "
\n https://speaker.com/\n
Embedded content from speaker
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__speaker.parsed.json b/blocks/test/fixtures/core-embed__speaker.parsed.json index 1c1a049a23c85..c72ade0460d32 100644 --- a/blocks/test/fixtures/core-embed__speaker.parsed.json +++ b/blocks/test/fixtures/core-embed__speaker.parsed.json @@ -5,7 +5,7 @@ "url": "https://speaker.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://speaker.com/\n
Embedded content from speaker
\n
\n" + "innerHTML": "\n
\n https://speaker.com/\n
Embedded content from speaker
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__speaker.serialized.html b/blocks/test/fixtures/core-embed__speaker.serialized.html index 2e3b4592cbc35..32d26ad064c76 100644 --- a/blocks/test/fixtures/core-embed__speaker.serialized.html +++ b/blocks/test/fixtures/core-embed__speaker.serialized.html @@ -1,5 +1,5 @@ -
+
https://speaker.com/
Embedded content from speaker
diff --git a/blocks/test/fixtures/core-embed__spotify.html b/blocks/test/fixtures/core-embed__spotify.html index 1fc73903acb3e..889c2c9302dc9 100644 --- a/blocks/test/fixtures/core-embed__spotify.html +++ b/blocks/test/fixtures/core-embed__spotify.html @@ -1,5 +1,5 @@ -
+
https://spotify.com/
Embedded content from spotify
diff --git a/blocks/test/fixtures/core-embed__spotify.json b/blocks/test/fixtures/core-embed__spotify.json index ec59ab05cdfec..00b5e6f3623ca 100644 --- a/blocks/test/fixtures/core-embed__spotify.json +++ b/blocks/test/fixtures/core-embed__spotify.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://spotify.com/\n
Embedded content from spotify
\n
" + "originalContent": "
\n https://spotify.com/\n
Embedded content from spotify
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__spotify.parsed.json b/blocks/test/fixtures/core-embed__spotify.parsed.json index 7b4c586d75ff8..d00c7c3ab2684 100644 --- a/blocks/test/fixtures/core-embed__spotify.parsed.json +++ b/blocks/test/fixtures/core-embed__spotify.parsed.json @@ -5,7 +5,7 @@ "url": "https://spotify.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://spotify.com/\n
Embedded content from spotify
\n
\n" + "innerHTML": "\n
\n https://spotify.com/\n
Embedded content from spotify
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__spotify.serialized.html b/blocks/test/fixtures/core-embed__spotify.serialized.html index 1fc73903acb3e..889c2c9302dc9 100644 --- a/blocks/test/fixtures/core-embed__spotify.serialized.html +++ b/blocks/test/fixtures/core-embed__spotify.serialized.html @@ -1,5 +1,5 @@ -
+
https://spotify.com/
Embedded content from spotify
diff --git a/blocks/test/fixtures/core-embed__ted.html b/blocks/test/fixtures/core-embed__ted.html index 01eae201b6b92..b224ba2485a91 100644 --- a/blocks/test/fixtures/core-embed__ted.html +++ b/blocks/test/fixtures/core-embed__ted.html @@ -1,5 +1,5 @@ -
+
https://ted.com/
Embedded content from ted
diff --git a/blocks/test/fixtures/core-embed__ted.json b/blocks/test/fixtures/core-embed__ted.json index 306e48d7b9484..a6604a060ee86 100644 --- a/blocks/test/fixtures/core-embed__ted.json +++ b/blocks/test/fixtures/core-embed__ted.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://ted.com/\n
Embedded content from ted
\n
" + "originalContent": "
\n https://ted.com/\n
Embedded content from ted
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__ted.parsed.json b/blocks/test/fixtures/core-embed__ted.parsed.json index 039ac00e22325..efe58f7102210 100644 --- a/blocks/test/fixtures/core-embed__ted.parsed.json +++ b/blocks/test/fixtures/core-embed__ted.parsed.json @@ -5,7 +5,7 @@ "url": "https://ted.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://ted.com/\n
Embedded content from ted
\n
\n" + "innerHTML": "\n
\n https://ted.com/\n
Embedded content from ted
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__ted.serialized.html b/blocks/test/fixtures/core-embed__ted.serialized.html index 01eae201b6b92..b224ba2485a91 100644 --- a/blocks/test/fixtures/core-embed__ted.serialized.html +++ b/blocks/test/fixtures/core-embed__ted.serialized.html @@ -1,5 +1,5 @@ -
+
https://ted.com/
Embedded content from ted
diff --git a/blocks/test/fixtures/core-embed__tumblr.html b/blocks/test/fixtures/core-embed__tumblr.html index d558986629124..eb4e312872847 100644 --- a/blocks/test/fixtures/core-embed__tumblr.html +++ b/blocks/test/fixtures/core-embed__tumblr.html @@ -1,5 +1,5 @@ -
+
https://tumblr.com/
Embedded content from tumblr
diff --git a/blocks/test/fixtures/core-embed__tumblr.json b/blocks/test/fixtures/core-embed__tumblr.json index 7ff6190c97151..592340674e3d6 100644 --- a/blocks/test/fixtures/core-embed__tumblr.json +++ b/blocks/test/fixtures/core-embed__tumblr.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://tumblr.com/\n
Embedded content from tumblr
\n
" + "originalContent": "
\n https://tumblr.com/\n
Embedded content from tumblr
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__tumblr.parsed.json b/blocks/test/fixtures/core-embed__tumblr.parsed.json index ffddcf7db3490..21cf0b4f8fb1d 100644 --- a/blocks/test/fixtures/core-embed__tumblr.parsed.json +++ b/blocks/test/fixtures/core-embed__tumblr.parsed.json @@ -5,7 +5,7 @@ "url": "https://tumblr.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://tumblr.com/\n
Embedded content from tumblr
\n
\n" + "innerHTML": "\n
\n https://tumblr.com/\n
Embedded content from tumblr
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__tumblr.serialized.html b/blocks/test/fixtures/core-embed__tumblr.serialized.html index d558986629124..eb4e312872847 100644 --- a/blocks/test/fixtures/core-embed__tumblr.serialized.html +++ b/blocks/test/fixtures/core-embed__tumblr.serialized.html @@ -1,5 +1,5 @@ -
+
https://tumblr.com/
Embedded content from tumblr
diff --git a/blocks/test/fixtures/core-embed__twitter.html b/blocks/test/fixtures/core-embed__twitter.html index 155eaaccbfcd0..56ada6161a040 100644 --- a/blocks/test/fixtures/core-embed__twitter.html +++ b/blocks/test/fixtures/core-embed__twitter.html @@ -1,5 +1,5 @@ -
+
https://twitter.com/automattic
We are Automattic
diff --git a/blocks/test/fixtures/core-embed__twitter.json b/blocks/test/fixtures/core-embed__twitter.json index 458d69398354f..0ffe0dfd18dc7 100644 --- a/blocks/test/fixtures/core-embed__twitter.json +++ b/blocks/test/fixtures/core-embed__twitter.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://twitter.com/automattic\n
We are Automattic
\n
" + "originalContent": "
\n https://twitter.com/automattic\n
We are Automattic
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__twitter.parsed.json b/blocks/test/fixtures/core-embed__twitter.parsed.json index 411ca576f1f04..7f40d48d65081 100644 --- a/blocks/test/fixtures/core-embed__twitter.parsed.json +++ b/blocks/test/fixtures/core-embed__twitter.parsed.json @@ -5,7 +5,7 @@ "url": "https://twitter.com/automattic" }, "innerBlocks": [], - "innerHTML": "\n
\n https://twitter.com/automattic\n
We are Automattic
\n
\n" + "innerHTML": "\n
\n https://twitter.com/automattic\n
We are Automattic
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__twitter.serialized.html b/blocks/test/fixtures/core-embed__twitter.serialized.html index 155eaaccbfcd0..56ada6161a040 100644 --- a/blocks/test/fixtures/core-embed__twitter.serialized.html +++ b/blocks/test/fixtures/core-embed__twitter.serialized.html @@ -1,5 +1,5 @@ -
+
https://twitter.com/automattic
We are Automattic
diff --git a/blocks/test/fixtures/core-embed__videopress.html b/blocks/test/fixtures/core-embed__videopress.html index 1b3e5f77597a2..180c6bdf5597f 100644 --- a/blocks/test/fixtures/core-embed__videopress.html +++ b/blocks/test/fixtures/core-embed__videopress.html @@ -1,5 +1,5 @@ -
+
https://videopress.com/
Embedded content from videopress
diff --git a/blocks/test/fixtures/core-embed__videopress.json b/blocks/test/fixtures/core-embed__videopress.json index 81f8b7bed2ddd..8017be64d89b7 100644 --- a/blocks/test/fixtures/core-embed__videopress.json +++ b/blocks/test/fixtures/core-embed__videopress.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://videopress.com/\n
Embedded content from videopress
\n
" + "originalContent": "
\n https://videopress.com/\n
Embedded content from videopress
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__videopress.parsed.json b/blocks/test/fixtures/core-embed__videopress.parsed.json index fc89037cd308a..9899b5ada9d05 100644 --- a/blocks/test/fixtures/core-embed__videopress.parsed.json +++ b/blocks/test/fixtures/core-embed__videopress.parsed.json @@ -5,7 +5,7 @@ "url": "https://videopress.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://videopress.com/\n
Embedded content from videopress
\n
\n" + "innerHTML": "\n
\n https://videopress.com/\n
Embedded content from videopress
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__videopress.serialized.html b/blocks/test/fixtures/core-embed__videopress.serialized.html index 1b3e5f77597a2..180c6bdf5597f 100644 --- a/blocks/test/fixtures/core-embed__videopress.serialized.html +++ b/blocks/test/fixtures/core-embed__videopress.serialized.html @@ -1,5 +1,5 @@ -
+
https://videopress.com/
Embedded content from videopress
diff --git a/blocks/test/fixtures/core-embed__vimeo.html b/blocks/test/fixtures/core-embed__vimeo.html index 7f1a6d8889aa5..49aecddc58024 100644 --- a/blocks/test/fixtures/core-embed__vimeo.html +++ b/blocks/test/fixtures/core-embed__vimeo.html @@ -1,5 +1,5 @@ -
+
https://vimeo.com/
Embedded content from vimeo
diff --git a/blocks/test/fixtures/core-embed__vimeo.json b/blocks/test/fixtures/core-embed__vimeo.json index 930291ae2d150..8d83154acabe5 100644 --- a/blocks/test/fixtures/core-embed__vimeo.json +++ b/blocks/test/fixtures/core-embed__vimeo.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://vimeo.com/\n
Embedded content from vimeo
\n
" + "originalContent": "
\n https://vimeo.com/\n
Embedded content from vimeo
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__vimeo.parsed.json b/blocks/test/fixtures/core-embed__vimeo.parsed.json index f1941ff981c56..bb395a27c9d9f 100644 --- a/blocks/test/fixtures/core-embed__vimeo.parsed.json +++ b/blocks/test/fixtures/core-embed__vimeo.parsed.json @@ -5,7 +5,7 @@ "url": "https://vimeo.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://vimeo.com/\n
Embedded content from vimeo
\n
\n" + "innerHTML": "\n
\n https://vimeo.com/\n
Embedded content from vimeo
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__vimeo.serialized.html b/blocks/test/fixtures/core-embed__vimeo.serialized.html index 7f1a6d8889aa5..49aecddc58024 100644 --- a/blocks/test/fixtures/core-embed__vimeo.serialized.html +++ b/blocks/test/fixtures/core-embed__vimeo.serialized.html @@ -1,5 +1,5 @@ -
+
https://vimeo.com/
Embedded content from vimeo
diff --git a/blocks/test/fixtures/core-embed__wordpress-tv.html b/blocks/test/fixtures/core-embed__wordpress-tv.html index 5fbb3ea107940..403280a77b82d 100644 --- a/blocks/test/fixtures/core-embed__wordpress-tv.html +++ b/blocks/test/fixtures/core-embed__wordpress-tv.html @@ -1,5 +1,5 @@ -
+
https://wordpress.tv/
Embedded content from wordpress-tv
diff --git a/blocks/test/fixtures/core-embed__wordpress-tv.json b/blocks/test/fixtures/core-embed__wordpress-tv.json index 9e55cc69e9fff..f674b6dcf279c 100644 --- a/blocks/test/fixtures/core-embed__wordpress-tv.json +++ b/blocks/test/fixtures/core-embed__wordpress-tv.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://wordpress.tv/\n
Embedded content from wordpress-tv
\n
" + "originalContent": "
\n https://wordpress.tv/\n
Embedded content from wordpress-tv
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__wordpress-tv.parsed.json b/blocks/test/fixtures/core-embed__wordpress-tv.parsed.json index 996d09f4c4e27..7807127a8286c 100644 --- a/blocks/test/fixtures/core-embed__wordpress-tv.parsed.json +++ b/blocks/test/fixtures/core-embed__wordpress-tv.parsed.json @@ -5,7 +5,7 @@ "url": "https://wordpress.tv/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://wordpress.tv/\n
Embedded content from wordpress-tv
\n
\n" + "innerHTML": "\n
\n https://wordpress.tv/\n
Embedded content from wordpress-tv
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__wordpress-tv.serialized.html b/blocks/test/fixtures/core-embed__wordpress-tv.serialized.html index 5fbb3ea107940..403280a77b82d 100644 --- a/blocks/test/fixtures/core-embed__wordpress-tv.serialized.html +++ b/blocks/test/fixtures/core-embed__wordpress-tv.serialized.html @@ -1,5 +1,5 @@ -
+
https://wordpress.tv/
Embedded content from wordpress-tv
diff --git a/blocks/test/fixtures/core-embed__wordpress.html b/blocks/test/fixtures/core-embed__wordpress.html index 1543bb764978b..32fb550fd8fcc 100644 --- a/blocks/test/fixtures/core-embed__wordpress.html +++ b/blocks/test/fixtures/core-embed__wordpress.html @@ -1,5 +1,5 @@ -
+
https://wordpress.com/
Embedded content from WordPress
diff --git a/blocks/test/fixtures/core-embed__wordpress.json b/blocks/test/fixtures/core-embed__wordpress.json index 9386dc743d3cf..a2daea8c0b3ca 100644 --- a/blocks/test/fixtures/core-embed__wordpress.json +++ b/blocks/test/fixtures/core-embed__wordpress.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://wordpress.com/\n
Embedded content from WordPress
\n
" + "originalContent": "
\n https://wordpress.com/\n
Embedded content from WordPress
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__wordpress.parsed.json b/blocks/test/fixtures/core-embed__wordpress.parsed.json index d61ce14aaabdc..61359932d5e53 100644 --- a/blocks/test/fixtures/core-embed__wordpress.parsed.json +++ b/blocks/test/fixtures/core-embed__wordpress.parsed.json @@ -5,7 +5,7 @@ "url": "https://wordpress.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://wordpress.com/\n
Embedded content from WordPress
\n
\n" + "innerHTML": "\n
\n https://wordpress.com/\n
Embedded content from WordPress
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__wordpress.serialized.html b/blocks/test/fixtures/core-embed__wordpress.serialized.html index 1543bb764978b..32fb550fd8fcc 100644 --- a/blocks/test/fixtures/core-embed__wordpress.serialized.html +++ b/blocks/test/fixtures/core-embed__wordpress.serialized.html @@ -1,5 +1,5 @@ -
+
https://wordpress.com/
Embedded content from WordPress
diff --git a/blocks/test/fixtures/core-embed__youtube.html b/blocks/test/fixtures/core-embed__youtube.html index bf575266319a1..dbbf5ba6a16ca 100644 --- a/blocks/test/fixtures/core-embed__youtube.html +++ b/blocks/test/fixtures/core-embed__youtube.html @@ -1,5 +1,5 @@ -
+
https://youtube.com/
Embedded content from youtube
diff --git a/blocks/test/fixtures/core-embed__youtube.json b/blocks/test/fixtures/core-embed__youtube.json index 73e380d4dfa27..f969d1225f91a 100644 --- a/blocks/test/fixtures/core-embed__youtube.json +++ b/blocks/test/fixtures/core-embed__youtube.json @@ -10,6 +10,6 @@ ] }, "innerBlocks": [], - "originalContent": "
\n https://youtube.com/\n
Embedded content from youtube
\n
" + "originalContent": "
\n https://youtube.com/\n
Embedded content from youtube
\n
" } ] diff --git a/blocks/test/fixtures/core-embed__youtube.parsed.json b/blocks/test/fixtures/core-embed__youtube.parsed.json index 8737692a1b51f..487c03a50ed86 100644 --- a/blocks/test/fixtures/core-embed__youtube.parsed.json +++ b/blocks/test/fixtures/core-embed__youtube.parsed.json @@ -5,7 +5,7 @@ "url": "https://youtube.com/" }, "innerBlocks": [], - "innerHTML": "\n
\n https://youtube.com/\n
Embedded content from youtube
\n
\n" + "innerHTML": "\n
\n https://youtube.com/\n
Embedded content from youtube
\n
\n" }, { "attrs": {}, diff --git a/blocks/test/fixtures/core-embed__youtube.serialized.html b/blocks/test/fixtures/core-embed__youtube.serialized.html index bf575266319a1..dbbf5ba6a16ca 100644 --- a/blocks/test/fixtures/core-embed__youtube.serialized.html +++ b/blocks/test/fixtures/core-embed__youtube.serialized.html @@ -1,5 +1,5 @@ -
+
https://youtube.com/
Embedded content from youtube
diff --git a/blocks/test/fixtures/core__audio.json b/blocks/test/fixtures/core__audio.json index b1ff7c032168e..e78d0f56a0eac 100644 --- a/blocks/test/fixtures/core__audio.json +++ b/blocks/test/fixtures/core__audio.json @@ -5,8 +5,8 @@ "isValid": true, "attributes": { "src": "https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3", - "align": "right", - "caption": [] + "caption": [], + "align": "right" }, "innerBlocks": [], "originalContent": "
\n \n
"