imnapo / react-native-cn-quill

Quill rich-text editor for react-native
MIT License
190 stars 75 forks source link

When I first inserted the picture, the height of the editor did not change. I had to manually make the editor lose focus before the height of the editor changed #70

Open BuhTig8 opened 3 years ago

BuhTig8 commented 3 years ago

react-native: 0.63.2 react-native-cn-quill: 0.7.14 react-native-webview: 7.4.3 Platform: iOS

<QuillEditor style={[styles.editor, this.props.style]} autoSize container={true} ref={this._editor} quill={{ id: 'quill-container', placeholder, modules: {toolbar: false}, }} webview={{ hideKeyboardAccessoryView: false, }} theme={{placeholder: '#989898'}} onHtmlChange={this._htmlChangeHandle} onDimensionsChange={this.onDimensionsChangeHandle} onFocus={this.onFocusHandle} />

insert image with api: this._editor.current.insertEmbed(length, 'image', imageURl);

https://user-images.githubusercontent.com/19285156/137834242-e6205c39-d8e5-4fa0-9348-9c6b183b88e5.mov