Hi Kamiyar,
Thank you for reaching out to Syncfusion support.
We’ve reviewed your query but unfortunately, we couldn’t replicate the issue
on our end. To assist you better, please ensure that the file browser is
properly integrated into your setup. For your reference, here is a sample code
snippet demonstrating the correct configuration:
|
import { FileManager } from '@syncfusion/ej2-react-richtexteditor';
const hostUrl = 'https://ej2-aspcore-service.azurewebsites.net/';
const toolbarSettings = {
items: ['FileManager', 'Image'],
};
const fileManagerSettings = {
enable: true,
path: '/Pictures/Food',
ajaxSettings: {
url: hostUrl + 'api/FileManager/FileOperations',
getImageUrl: hostUrl + 'api/FileManager/GetImage',
uploadUrl: hostUrl + 'api/FileManager/Upload',
downloadUrl: hostUrl + 'api/FileManager/Download',
},
};
return (
<div className="control-pane">
<RichTextEditorComponent
toolbarSettings={toolbarSettings}
fileManagerSettings={fileManagerSettings}
>
<p>
Rich Text Editor allows inserting images from online sources as
well as the local computers where you want to insert the image
in your content.
</p>
<Inject
services={[
HtmlEditor,
Toolbar,
Image,
Link,
QuickToolbar,
FileManager,
Table,
Video,
Audio,
]}
/>
</RichTextEditorComponent>
</div>
);
|
You can also view a working example here and consult the documentation for further details.
If the issue persists, please share a complete code snippet and a video
illustrating the problem. This will help us understand the issue better and
provide a prompt resolution.
Regards,
Buvana S