+
{ img }
);
}
- const currentWidth = width || imageWidthWithinContainer;
- const currentHeight = height || imageHeightWithinContainer;
-
- const ratio = imageWidth / imageHeight;
const minWidth = imageWidth < imageHeight ? MIN_SIZE : MIN_SIZE * ratio;
const minHeight = imageHeight < imageWidth ? MIN_SIZE : MIN_SIZE / ratio;
@@ -647,15 +844,15 @@ class ImageEdit extends Component {
{ getInspectorControls( imageWidth, imageHeight ) }
{
- setAttributes( {
- width: parseInt( currentWidth + delta.width, 10 ),
- height: parseInt( currentHeight + delta.height, 10 ),
- } );
+ let newWidth = parseInt( constrainedWidth + delta.width, 10 );
+
+ // Snap-to-border for the last pixel when resizing by dragging. Takes care of rounding of the last pixel.
+ if ( Math.abs( constrainedWidth - newWidth ) < 2 ) {
+ newWidth = constrainedWidth;
+ }
+
+ // Don't upscale.
+ if ( newWidth > imageWidth ) {
+ newWidth = imageWidth;
+ }
+
+ if ( newWidth >= blockWidth ) {
+ // The image was resized to greater than the block width. Reset to 100% width and height (that will also highlight the 100% width button).
+ this.resetWidthHeight( imageWidth, imageHeight );
+ } else {
+ this.updateWidth( newWidth, imageWidth, imageHeight );
+ }
+
toggleSelection( true );
} }
>
diff --git a/packages/block-library/src/image/index.js b/packages/block-library/src/image/index.js
index 0a5ca7618c4aa9..0b6fdeb5a03fa8 100644
--- a/packages/block-library/src/image/index.js
+++ b/packages/block-library/src/image/index.js
@@ -30,15 +30,9 @@ export const name = 'core/image';
const blockAttributes = {
url: {
type: 'string',
- source: 'attribute',
- selector: 'img',
- attribute: 'src',
},
alt: {
type: 'string',
- source: 'attribute',
- selector: 'img',
- attribute: 'alt',
default: '',
},
caption: {
@@ -76,6 +70,19 @@ const blockAttributes = {
height: {
type: 'number',
},
+ fileWidth: {
+ type: 'number',
+ },
+ fileHeight: {
+ type: 'number',
+ },
+ userSetDimensions: {
+ type: 'boolean',
+ default: false,
+ },
+ editWidth: {
+ type: 'number',
+ },
linkDestination: {
type: 'string',
default: 'none',
@@ -111,6 +118,69 @@ const schema = {
},
};
+function save( { attributes } ) {
+ const {
+ url,
+ alt,
+ caption,
+ align,
+ href,
+ rel,
+ linkClass,
+ width,
+ height,
+ id,
+ linkTarget,
+ } = attributes;
+
+ const classes = classnames( {
+ [ `align${ align }` ]: align,
+ 'is-resized': width || height,
+ } );
+
+ const image = (
+
+ );
+
+ const figure = (
+
+ { href ? (
+
+ { image }
+
+ ) : image }
+ { ! RichText.isEmpty( caption ) && }
+
+ );
+
+ if ( 'left' === align || 'right' === align || 'center' === align ) {
+ return (
+
+
+ { figure }
+
+
+ );
+ }
+
+ return (
+
+ { figure }
+
+ );
+}
+
export const settings = {
title: __( 'Image' ),
@@ -146,7 +216,19 @@ export const settings = {
const href = anchorElement && anchorElement.href ? anchorElement.href : undefined;
const rel = anchorElement && anchorElement.rel ? anchorElement.rel : undefined;
const linkClass = anchorElement && anchorElement.className ? anchorElement.className : undefined;
- const attributes = getBlockAttributes( 'core/image', node.outerHTML, { align, id, linkDestination, href, rel, linkClass } );
+ const imgElement = node.querySelector( 'img' );
+ const url = imgElement.src;
+ const alt = imgElement.alt;
+ const attributes = getBlockAttributes( 'core/image', node.outerHTML, {
+ url,
+ alt,
+ align,
+ id,
+ linkDestination,
+ href,
+ rel,
+ linkClass,
+ } );
return createBlock( 'core/image', attributes );
},
},
@@ -237,68 +319,7 @@ export const settings = {
edit,
- save( { attributes } ) {
- const {
- url,
- alt,
- caption,
- align,
- href,
- rel,
- linkClass,
- width,
- height,
- id,
- linkTarget,
- } = attributes;
-
- const classes = classnames( {
- [ `align${ align }` ]: align,
- 'is-resized': width || height,
- } );
-
- const image = (
-
- );
-
- const figure = (
-
- { href ? (
-
- { image }
-
- ) : image }
- { ! RichText.isEmpty( caption ) && }
-
- );
-
- if ( 'left' === align || 'right' === align || 'center' === align ) {
- return (
-
-
- { figure }
-
-
- );
- }
-
- return (
-
- { figure }
-
- );
- },
+ save,
deprecated: [
{
@@ -375,5 +396,24 @@ export const settings = {
);
},
},
+ {
+ attributes: {
+ ...blockAttributes,
+ url: {
+ type: 'string',
+ source: 'attribute',
+ selector: 'img',
+ attribute: 'src',
+ },
+ alt: {
+ type: 'string',
+ source: 'attribute',
+ selector: 'img',
+ attribute: 'alt',
+ default: '',
+ },
+ },
+ save,
+ },
],
};
diff --git a/packages/editor/src/utils/dom.js b/packages/editor/src/utils/dom.js
index 8ee6fef110d799..8705a400f1a3f7 100644
--- a/packages/editor/src/utils/dom.js
+++ b/packages/editor/src/utils/dom.js
@@ -25,6 +25,40 @@ export function getBlockFocusableWrapper( clientId ) {
return getBlockDOMNode( clientId ).closest( '.editor-block-list__block' );
}
+/**
+ * Returns the expected width of a block which would occupy the editor block
+ * list, in absolute pixels. This value is cached; the cache reset upon change
+ * in viewport size.
+ *
+ * @return {number} Expected block width in pixels.
+ */
+export const getBlockWidth = ( () => {
+ let width;
+ window.addEventListener( 'resize', () => width = undefined );
+
+ return () => {
+ if ( width === undefined ) {
+ const layout = document.querySelector( '.editor-block-list__layout' );
+ if ( ! layout ) {
+ return;
+ }
+
+ const block = document.createElement( 'div' );
+ const measure = document.createElement( 'div' );
+
+ block.className = 'wp-block editor-block-list__block';
+ measure.className = 'editor-block-list__block-edit';
+ layout.appendChild( block );
+ block.appendChild( measure );
+
+ width = measure.clientWidth;
+ layout.removeChild( block );
+ }
+
+ return width;
+ };
+} )();
+
/**
* Returns true if the given HTMLElement is a block focus stop. Blocks without
* their own text fields rely on the focus stop to be keyboard navigable.
diff --git a/packages/editor/src/utils/index.js b/packages/editor/src/utils/index.js
index 0f246c16e4aec8..fb2b9cb87bc0e4 100644
--- a/packages/editor/src/utils/index.js
+++ b/packages/editor/src/utils/index.js
@@ -2,6 +2,11 @@
* Internal dependencies
*/
import mediaUpload from './media-upload';
+import { getBlockWidth } from './dom';
export { mediaUpload };
export { cleanForSlug } from './url.js';
+
+export const __unstableDOM = {
+ getBlockWidth,
+};
diff --git a/phpunit/fixtures/long-content.html b/phpunit/fixtures/long-content.html
index 065b7c402c1495..baf610133860dc 100644
--- a/phpunit/fixtures/long-content.html
+++ b/phpunit/fixtures/long-content.html
@@ -19,7 +19,7 @@ A Picture is worth a Thousand Words
Handling images and media with the utmost care is a primary focus of the new editor. Hopefully, you'll find aspects of adding captions or going full-width with your pictures much easier and robust than before.
-
+
Give it a try. Press the "wide" button on the image toolbar.
@@ -81,7 +81,7 @@ Media Rich
If you combine the new wide and full-wide alignments with galleries, you can create a very media rich layout, very quickly:
-
+
diff --git a/post-content.php b/post-content.php
index f34262d1eed4c8..d3e120e0cd2058 100644
--- a/post-content.php
+++ b/post-content.php
@@ -26,7 +26,7 @@
-
+
@@ -108,7 +108,7 @@
wide and full-wide alignments with galleries, you can create a very media rich layout, very quickly:', 'gutenberg' ); ?>
-
+
diff --git a/test/integration/__snapshots__/blocks-raw-handling.spec.js.snap b/test/integration/__snapshots__/blocks-raw-handling.spec.js.snap
index 320b201a836e3c..745c5b16b8bba6 100644
--- a/test/integration/__snapshots__/blocks-raw-handling.spec.js.snap
+++ b/test/integration/__snapshots__/blocks-raw-handling.spec.js.snap
@@ -5,8 +5,8 @@ exports[`Blocks raw handling rawHandler should convert HTML post to blocks with
Howdy
-
-
+
+
diff --git a/test/integration/fixtures/caption-shortcode-out.html b/test/integration/fixtures/caption-shortcode-out.html
index 2027b65d2feae6..81cc6003269996 100644
--- a/test/integration/fixtures/caption-shortcode-out.html
+++ b/test/integration/fixtures/caption-shortcode-out.html
@@ -1,3 +1,3 @@
-
+
test
diff --git a/test/integration/fixtures/evernote-out.html b/test/integration/fixtures/evernote-out.html
index 4d8c6c43b9c99e..07e10ceaca109d 100644
--- a/test/integration/fixtures/evernote-out.html
+++ b/test/integration/fixtures/evernote-out.html
@@ -26,6 +26,6 @@
-
+
diff --git a/test/integration/fixtures/google-docs-out.html b/test/integration/fixtures/google-docs-out.html
index 7733ca660bdd02..f7c8d4169f488c 100644
--- a/test/integration/fixtures/google-docs-out.html
+++ b/test/integration/fixtures/google-docs-out.html
@@ -30,6 +30,6 @@ This is a heading
An image:
-
+
diff --git a/test/integration/fixtures/ms-word-online-out.html b/test/integration/fixtures/ms-word-online-out.html
index 3088b7480877f7..3edcced6477806 100644
--- a/test/integration/fixtures/ms-word-online-out.html
+++ b/test/integration/fixtures/ms-word-online-out.html
@@ -22,6 +22,6 @@
An image:
-
+
diff --git a/test/integration/fixtures/ms-word-out.html b/test/integration/fixtures/ms-word-out.html
index c53c5aaeba2e97..17cf55c0f54500 100644
--- a/test/integration/fixtures/ms-word-out.html
+++ b/test/integration/fixtures/ms-word-out.html
@@ -54,6 +54,6 @@ This is a heading level 2
An image:
-
+
diff --git a/test/integration/fixtures/one-image-out.html b/test/integration/fixtures/one-image-out.html
index defa0138370faf..32dd9a7292720a 100644
--- a/test/integration/fixtures/one-image-out.html
+++ b/test/integration/fixtures/one-image-out.html
@@ -1,3 +1,3 @@
-
+
diff --git a/test/integration/fixtures/two-images-out.html b/test/integration/fixtures/two-images-out.html
index 4b96a052a52b7b..c502dbba43cbfc 100644
--- a/test/integration/fixtures/two-images-out.html
+++ b/test/integration/fixtures/two-images-out.html
@@ -1,7 +1,7 @@
-
+
-
+
diff --git a/test/integration/full-content/fixtures/core__image.html b/test/integration/full-content/fixtures/core__image.html
index eda663561a38bf..26456a7c5951a4 100644
--- a/test/integration/full-content/fixtures/core__image.html
+++ b/test/integration/full-content/fixtures/core__image.html
@@ -1,3 +1,3 @@
-
+
diff --git a/test/integration/full-content/fixtures/core__image.json b/test/integration/full-content/fixtures/core__image.json
index 4369150f0c9292..7af31c081cb808 100644
--- a/test/integration/full-content/fixtures/core__image.json
+++ b/test/integration/full-content/fixtures/core__image.json
@@ -7,6 +7,7 @@
"url": "https://cldup.com/uuUqE_dXzy.jpg",
"alt": "",
"caption": "",
+ "userSetDimensions": false,
"linkDestination": "none"
},
"innerBlocks": [],
diff --git a/test/integration/full-content/fixtures/core__image.parsed.json b/test/integration/full-content/fixtures/core__image.parsed.json
index d7e16a440ddefb..da8061d041a90d 100644
--- a/test/integration/full-content/fixtures/core__image.parsed.json
+++ b/test/integration/full-content/fixtures/core__image.parsed.json
@@ -1,7 +1,9 @@
[
{
"blockName": "core/image",
- "attrs": {},
+ "attrs": {
+ "url": "https://cldup.com/uuUqE_dXzy.jpg"
+ },
"innerBlocks": [],
"innerHTML": "\n \n",
"innerContent": [
diff --git a/test/integration/full-content/fixtures/core__image.serialized.html b/test/integration/full-content/fixtures/core__image.serialized.html
index 5dfb0bac3e5b72..ce4733e9d58570 100644
--- a/test/integration/full-content/fixtures/core__image.serialized.html
+++ b/test/integration/full-content/fixtures/core__image.serialized.html
@@ -1,3 +1,3 @@
-
+
diff --git a/test/integration/full-content/fixtures/core__image__attachment-link.html b/test/integration/full-content/fixtures/core__image__attachment-link.html
index 908250d8ca249c..b7b119d196a375 100644
--- a/test/integration/full-content/fixtures/core__image__attachment-link.html
+++ b/test/integration/full-content/fixtures/core__image__attachment-link.html
@@ -1,3 +1,3 @@
-
+
diff --git a/test/integration/full-content/fixtures/core__image__attachment-link.json b/test/integration/full-content/fixtures/core__image__attachment-link.json
index 5d169589043a5c..e7cee2534174d0 100644
--- a/test/integration/full-content/fixtures/core__image__attachment-link.json
+++ b/test/integration/full-content/fixtures/core__image__attachment-link.json
@@ -8,6 +8,7 @@
"alt": "",
"caption": "",
"href": "http://localhost:8888/?attachment_id=7",
+ "userSetDimensions": false,
"linkDestination": "attachment"
},
"innerBlocks": [],
diff --git a/test/integration/full-content/fixtures/core__image__attachment-link.parsed.json b/test/integration/full-content/fixtures/core__image__attachment-link.parsed.json
index fae6604516028e..0313b05e487782 100644
--- a/test/integration/full-content/fixtures/core__image__attachment-link.parsed.json
+++ b/test/integration/full-content/fixtures/core__image__attachment-link.parsed.json
@@ -2,6 +2,7 @@
{
"blockName": "core/image",
"attrs": {
+ "url": "https://cldup.com/uuUqE_dXzy.jpg",
"linkDestination": "attachment"
},
"innerBlocks": [],
diff --git a/test/integration/full-content/fixtures/core__image__attachment-link.serialized.html b/test/integration/full-content/fixtures/core__image__attachment-link.serialized.html
index f5ebb9af4182c5..aa0077d5bb6dd1 100644
--- a/test/integration/full-content/fixtures/core__image__attachment-link.serialized.html
+++ b/test/integration/full-content/fixtures/core__image__attachment-link.serialized.html
@@ -1,3 +1,3 @@
-
+
diff --git a/test/integration/full-content/fixtures/core__image__center-caption.html b/test/integration/full-content/fixtures/core__image__center-caption.html
index bfe40d190fa66e..e55b77314c9fb4 100644
--- a/test/integration/full-content/fixtures/core__image__center-caption.html
+++ b/test/integration/full-content/fixtures/core__image__center-caption.html
@@ -1,3 +1,3 @@
-
+
Give it a try. Press the "really wide" button on the image toolbar.
diff --git a/test/integration/full-content/fixtures/core__image__center-caption.json b/test/integration/full-content/fixtures/core__image__center-caption.json
index f569bda22c81b2..7fe3773e95e1ad 100644
--- a/test/integration/full-content/fixtures/core__image__center-caption.json
+++ b/test/integration/full-content/fixtures/core__image__center-caption.json
@@ -8,6 +8,7 @@
"alt": "",
"caption": "Give it a try. Press the \"really wide\" button on the image toolbar.",
"align": "center",
+ "userSetDimensions": false,
"linkDestination": "none"
},
"innerBlocks": [],
diff --git a/test/integration/full-content/fixtures/core__image__center-caption.parsed.json b/test/integration/full-content/fixtures/core__image__center-caption.parsed.json
index 02ff95e3ae8cb7..9787338318131e 100644
--- a/test/integration/full-content/fixtures/core__image__center-caption.parsed.json
+++ b/test/integration/full-content/fixtures/core__image__center-caption.parsed.json
@@ -2,6 +2,7 @@
{
"blockName": "core/image",
"attrs": {
+ "url": "https://cldup.com/YLYhpou2oq.jpg",
"align": "center"
},
"innerBlocks": [],
diff --git a/test/integration/full-content/fixtures/core__image__center-caption.serialized.html b/test/integration/full-content/fixtures/core__image__center-caption.serialized.html
index 3410b04fdf1214..28006a62ec21c7 100644
--- a/test/integration/full-content/fixtures/core__image__center-caption.serialized.html
+++ b/test/integration/full-content/fixtures/core__image__center-caption.serialized.html
@@ -1,3 +1,3 @@
-
+
Give it a try. Press the "really wide" button on the image toolbar.
diff --git a/test/integration/full-content/fixtures/core__image__custom-link-class.html b/test/integration/full-content/fixtures/core__image__custom-link-class.html
index 57cc46c9c39bbe..966033bc967f29 100644
--- a/test/integration/full-content/fixtures/core__image__custom-link-class.html
+++ b/test/integration/full-content/fixtures/core__image__custom-link-class.html
@@ -1,3 +1,3 @@
-
+
diff --git a/test/integration/full-content/fixtures/core__image__custom-link-class.json b/test/integration/full-content/fixtures/core__image__custom-link-class.json
index d47fe4162c9c62..b7e5fcc0e3ac1d 100644
--- a/test/integration/full-content/fixtures/core__image__custom-link-class.json
+++ b/test/integration/full-content/fixtures/core__image__custom-link-class.json
@@ -9,6 +9,7 @@
"caption": "",
"href": "https://wordpress.org/",
"linkClass": "custom-link",
+ "userSetDimensions": false,
"linkDestination": "custom"
},
"innerBlocks": [],
diff --git a/test/integration/full-content/fixtures/core__image__custom-link-class.parsed.json b/test/integration/full-content/fixtures/core__image__custom-link-class.parsed.json
index c69b53dcc08aa9..d2ef1d381a4d21 100644
--- a/test/integration/full-content/fixtures/core__image__custom-link-class.parsed.json
+++ b/test/integration/full-content/fixtures/core__image__custom-link-class.parsed.json
@@ -2,6 +2,7 @@
{
"blockName": "core/image",
"attrs": {
+ "url": "https://cldup.com/uuUqE_dXzy.jpg",
"linkDestination": "custom"
},
"innerBlocks": [],
diff --git a/test/integration/full-content/fixtures/core__image__custom-link-class.serialized.html b/test/integration/full-content/fixtures/core__image__custom-link-class.serialized.html
index 9ac1f7a7a914e9..118472982fed7a 100644
--- a/test/integration/full-content/fixtures/core__image__custom-link-class.serialized.html
+++ b/test/integration/full-content/fixtures/core__image__custom-link-class.serialized.html
@@ -1,3 +1,3 @@
-
+
diff --git a/test/integration/full-content/fixtures/core__image__custom-link-rel.html b/test/integration/full-content/fixtures/core__image__custom-link-rel.html
index 3424ed3fff3d70..b87831ecc7bcb8 100644
--- a/test/integration/full-content/fixtures/core__image__custom-link-rel.html
+++ b/test/integration/full-content/fixtures/core__image__custom-link-rel.html
@@ -1,3 +1,3 @@
-
+
diff --git a/test/integration/full-content/fixtures/core__image__custom-link-rel.json b/test/integration/full-content/fixtures/core__image__custom-link-rel.json
index 6000da69608e62..b9e7ea55bbba4d 100644
--- a/test/integration/full-content/fixtures/core__image__custom-link-rel.json
+++ b/test/integration/full-content/fixtures/core__image__custom-link-rel.json
@@ -9,6 +9,7 @@
"caption": "",
"href": "https://wordpress.org/",
"rel": "external",
+ "userSetDimensions": false,
"linkDestination": "custom"
},
"innerBlocks": [],
diff --git a/test/integration/full-content/fixtures/core__image__custom-link-rel.parsed.json b/test/integration/full-content/fixtures/core__image__custom-link-rel.parsed.json
index 91649db09a595f..fe007512a4f546 100644
--- a/test/integration/full-content/fixtures/core__image__custom-link-rel.parsed.json
+++ b/test/integration/full-content/fixtures/core__image__custom-link-rel.parsed.json
@@ -2,6 +2,7 @@
{
"blockName": "core/image",
"attrs": {
+ "url": "https://cldup.com/uuUqE_dXzy.jpg",
"linkDestination": "custom"
},
"innerBlocks": [],
diff --git a/test/integration/full-content/fixtures/core__image__custom-link-rel.serialized.html b/test/integration/full-content/fixtures/core__image__custom-link-rel.serialized.html
index 92702548c11d9d..b02c24a59827d3 100644
--- a/test/integration/full-content/fixtures/core__image__custom-link-rel.serialized.html
+++ b/test/integration/full-content/fixtures/core__image__custom-link-rel.serialized.html
@@ -1,3 +1,3 @@
-
+
diff --git a/test/integration/full-content/fixtures/core__image__custom-link.html b/test/integration/full-content/fixtures/core__image__custom-link.html
index 353dc5376b7a46..2fbfe8e42f13a3 100644
--- a/test/integration/full-content/fixtures/core__image__custom-link.html
+++ b/test/integration/full-content/fixtures/core__image__custom-link.html
@@ -1,3 +1,3 @@
-
+
diff --git a/test/integration/full-content/fixtures/core__image__custom-link.json b/test/integration/full-content/fixtures/core__image__custom-link.json
index 735e5522826624..3a5609984b4c14 100644
--- a/test/integration/full-content/fixtures/core__image__custom-link.json
+++ b/test/integration/full-content/fixtures/core__image__custom-link.json
@@ -8,6 +8,7 @@
"alt": "",
"caption": "",
"href": "https://wordpress.org/",
+ "userSetDimensions": false,
"linkDestination": "custom"
},
"innerBlocks": [],
diff --git a/test/integration/full-content/fixtures/core__image__custom-link.parsed.json b/test/integration/full-content/fixtures/core__image__custom-link.parsed.json
index a3625c6a1f683e..3fc24f2c979f7f 100644
--- a/test/integration/full-content/fixtures/core__image__custom-link.parsed.json
+++ b/test/integration/full-content/fixtures/core__image__custom-link.parsed.json
@@ -2,6 +2,7 @@
{
"blockName": "core/image",
"attrs": {
+ "url": "https://cldup.com/uuUqE_dXzy.jpg",
"linkDestination": "custom"
},
"innerBlocks": [],
diff --git a/test/integration/full-content/fixtures/core__image__custom-link.serialized.html b/test/integration/full-content/fixtures/core__image__custom-link.serialized.html
index 47357bea6b9d48..67c61dceef8633 100644
--- a/test/integration/full-content/fixtures/core__image__custom-link.serialized.html
+++ b/test/integration/full-content/fixtures/core__image__custom-link.serialized.html
@@ -1,3 +1,3 @@
-
+
diff --git a/test/integration/full-content/fixtures/core__image__media-link.html b/test/integration/full-content/fixtures/core__image__media-link.html
index 90b3d227117b04..cb7dda5892dbeb 100644
--- a/test/integration/full-content/fixtures/core__image__media-link.html
+++ b/test/integration/full-content/fixtures/core__image__media-link.html
@@ -1,3 +1,3 @@
-
+
diff --git a/test/integration/full-content/fixtures/core__image__media-link.json b/test/integration/full-content/fixtures/core__image__media-link.json
index 690fa778b6fd5b..eda23729a692cb 100644
--- a/test/integration/full-content/fixtures/core__image__media-link.json
+++ b/test/integration/full-content/fixtures/core__image__media-link.json
@@ -8,6 +8,7 @@
"alt": "",
"caption": "",
"href": "https://cldup.com/uuUqE_dXzy.jpg",
+ "userSetDimensions": false,
"linkDestination": "media"
},
"innerBlocks": [],
diff --git a/test/integration/full-content/fixtures/core__image__media-link.parsed.json b/test/integration/full-content/fixtures/core__image__media-link.parsed.json
index 46458a7eec3d7b..64a3a790c01a33 100644
--- a/test/integration/full-content/fixtures/core__image__media-link.parsed.json
+++ b/test/integration/full-content/fixtures/core__image__media-link.parsed.json
@@ -2,6 +2,7 @@
{
"blockName": "core/image",
"attrs": {
+ "url": "https://cldup.com/uuUqE_dXzy.jpg",
"linkDestination": "media"
},
"innerBlocks": [],
diff --git a/test/integration/full-content/fixtures/core__image__media-link.serialized.html b/test/integration/full-content/fixtures/core__image__media-link.serialized.html
index 721abac903ff31..127603aa7deb9e 100644
--- a/test/integration/full-content/fixtures/core__image__media-link.serialized.html
+++ b/test/integration/full-content/fixtures/core__image__media-link.serialized.html
@@ -1,3 +1,3 @@
-
+