wix-incubator / react-native-zss-rich-text-editor

React Native rich text editor based on ZSSRichTextEditor
Other
841 stars 310 forks source link

Keyboard Opening without selecting #101

Open rakeshgits opened 6 years ago

rakeshgits commented 6 years ago

In the App, the keyboard opens as soon as the view is loaded, without any interaction. Is there any possible way to avoid that?

`

this.richtext = r} style={styles.richText} initialContentHTML={''} editorInitializedCallback={() => this.onEditorInitialized()} hiddenTitle={true} editorAvailableHeight={-1} footerHeight={height * 0.2} contentPlaceholder={"Write your response here ..."} customCSS ={'#zss_editor_content{ width: 100%; height: 100%; paddingTop: 8;-webkit-overflow-scrolling: touch; overflow:auto; }'} />

`

tobiaskusnaman commented 5 years ago

The default of the package is focusing the title, but in your case, you hide your title.

check the editor.html on line 920 zss_editor.focusTitle();

comment that part, your problem should be solved