From b9ce09b221194159a1f864529c2536cda0a1a1b1 Mon Sep 17 00:00:00 2001 From: Stefanos Togkoulidis Date: Fri, 14 Aug 2020 13:28:25 +0300 Subject: [PATCH 1/2] Content is in the `content` attr for the classic block --- packages/block-library/src/missing/edit.native.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/missing/edit.native.js b/packages/block-library/src/missing/edit.native.js index d21c7acd9fb8c..3cb9311805c4f 100644 --- a/packages/block-library/src/missing/edit.native.js +++ b/packages/block-library/src/missing/edit.native.js @@ -122,8 +122,13 @@ export class UnsupportedBlockEdit extends Component { // On iOS, onModalHide is called when the controller is still part of the hierarchy. // A small delay will ensure that the controller has already been removed. this.timeout = setTimeout( () => { + // for the Classic block, the content is kept in the `content` attribute + const content = + blockName === 'core/freeform' + ? attributes.content + : attributes.originalContent; requestUnsupportedBlockFallback( - attributes.originalContent, + content, clientId, blockName, blockTitle From c9a8e76bbdd6951578374c59bf27bb0d4704f19c Mon Sep 17 00:00:00 2001 From: Ceyhun Ozugur Date: Fri, 14 Aug 2020 18:57:59 +0200 Subject: [PATCH 2/2] Update react-native-editor version to: 1.32.1 --- packages/react-native-editor/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native-editor/package.json b/packages/react-native-editor/package.json index 1ebdd406adb1a..1fcd5d415e1a8 100644 --- a/packages/react-native-editor/package.json +++ b/packages/react-native-editor/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/react-native-editor", - "version": "1.32.0", + "version": "1.32.1", "description": "Mobile WordPress gutenberg editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later",