Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150742 | Jan 17,2020 05:48 PM UTC | Feb 11,2020 03:08 PM UTC | React - EJ 2 | 5 |
![]() |
Tags: RichTextEditor |
export class ImageSample extends SampleBase {
constructor() {
super(...arguments);
this.insertImageSetting = {
saveUrl: 'https://aspnetmvc.syncfusion.com/services/api/uploadbox/Save'
};
}
imageUploading(e) {
console.log('image uplaoding event called');
}
imageSelected() {
console.log('image selected event called');
}
render() {
return (<div className='control-pane'>
<div className='col-lg-8'>
<div className='control-section' id="rteAPI">
<div className='rte-control-section'>
<RichTextEditorComponent id="imageRTE" ref={(richtexteditor) => { this.rteObj = richtexteditor; }} insertImageSettings={this.insertImageSetting} imageUploading={this.imageUploading.bind(this)} imageSelected={this.imageSelected.bind(this)}>
<p>Rich Text Editor allows to insert images from online source as well as local computer where you want to insert the image in your content.</p>
<Inject services={[HtmlEditor, Toolbar, Image, Link, QuickToolbar]}/>
</RichTextEditorComponent>
</div>
</div>
</div>
</div>);
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.