From 41b4a067fb0a9b5297cc57cb74bf9d9a2b9e96a8 Mon Sep 17 00:00:00 2001 From: Pinar Olguc Date: Wed, 13 Mar 2019 20:06:46 +0300 Subject: [PATCH] Add disableEditingMenu prop to manage showing editing menu on iOS --- packages/editor/src/components/post-title/index.native.js | 1 + packages/editor/src/components/rich-text/index.native.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/editor/src/components/post-title/index.native.js b/packages/editor/src/components/post-title/index.native.js index 23378470adc0ea..c6244649e9161f 100644 --- a/packages/editor/src/components/post-title/index.native.js +++ b/packages/editor/src/components/post-title/index.native.js @@ -86,6 +86,7 @@ class PostTitle extends Component { placeholder={ decodedPlaceholder } value={ title } onSplit={ this.props.onEnterPress } + disableEditingMenu={ true } setRef={ ( ref ) => { this.titleViewRef = ref; } } diff --git a/packages/editor/src/components/rich-text/index.native.js b/packages/editor/src/components/rich-text/index.native.js index 6cf30cb1dc3a93..055c5399e6063f 100644 --- a/packages/editor/src/components/rich-text/index.native.js +++ b/packages/editor/src/components/rich-text/index.native.js @@ -573,6 +573,7 @@ export class RichText extends Component { fontSize={ this.props.fontSize } fontWeight={ this.props.fontWeight } fontStyle={ this.props.fontStyle } + disableEditingMenu={ this.props.disableEditingMenu } /> { isSelected && }