react-native-rich-editor
react-native-rich-editor copied to clipboard
ios16系统,编辑器初始化的时候键盘会自动弹起
<RichEditor showsVerticalScrollIndicator={false} initialFocus={false} disabled={false} editorStyle={{ color: Theme.C_222222, placeholderColor: Theme.C_CCCCCC, contentCSSText: 'font-size: 14px' }} containerStyle={styles.richEditContainer} ref={this.richText} style={styles.richEditStyle} placeholder={'内容不少于10个字,欢迎你的用心分享~'} onChange={this.handleChange} // onHeightChange={this.handleHeightChange} onMessage={this.handleMessage} onFocus={this.handleFocus} onBlur={this.handleBlur} pasteAsPlainText={false} />
在iOS16上,富文本编辑器初始化的时候,键盘会自动弹起。键盘弹起以后,有时候可以自动收起,有时候不能收回
initialFocus={false}不生效
在iOS16之前版本,直接insertHTML,键盘不会弹起。iOS插入HTML键盘也会弹起
this.richText && this.richText.current && this.richText.current.insertHTML( '<div><br></div><div><br></div>' )
I have the same problem
initialFocus={false} The issue has been fixed