From 5b03db6e36efeb19fe3a45b97c0b238a33248d4f Mon Sep 17 00:00:00 2001 From: Dominic Eden Date: Mon, 11 Jun 2018 00:59:35 +0100 Subject: [PATCH] =?UTF-8?q?[fix/add-image-details-to-changes-guide]=20add?= =?UTF-8?q?=20extra=20details=20on=20how=20to=20=E2=80=A6=20(#1870)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [fix/add-image-details-to-changes-guide] add extra details on how to insert an image into a Slate Value. * [fix/add-image-details-to-changes-guide] fix linting errors with Prettier * Update changes.md * Update changes.md --- docs/guides/changes.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/guides/changes.md b/docs/guides/changes.md index 439bb8c10..7072d8649 100644 --- a/docs/guides/changes.md +++ b/docs/guides/changes.md @@ -25,7 +25,15 @@ change .moveToOffsets(10, 14) .addMark('bold') .collapseToEndOfBlock() - .insertBlock({ type: 'image', isVoid: true }) + .insertBlock({ + type: 'image', + isVoid: true, + data: { + src: 'http://placekitten.com/200/300', + alt: 'Kittens', + className: 'img-responsive', + }, + }) .insertBlock('paragraph') ```