Open BuhTig8 opened 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);
this._editor.current.insertEmbed(length, 'image', imageURl);
https://user-images.githubusercontent.com/19285156/137834242-e6205c39-d8e5-4fa0-9348-9c6b183b88e5.mov
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