Hi,
I am using Rich Text editor for my project. I added image from 'Insert Image' and saving data in database.
When I try to show data in detail page, the image show as I added .But the problem is when I changed to other browser or open from another tab, the image showed like this.
How can I fix that problem?
|
export class Default extends SampleBase {
constructor() {
this.imageSettings = {
saveFormat: "Base64"
}
}
render() {
return (
<RichTextEditorComponent insertImageSettings={this.imageSettings}>
<Inject services={[HtmlEditor, Toolbar, Image, Link, QuickToolbar]}/>
</RichTextEditorComponent>
)
}
}
|
|
export class Default extends React.PureComponent {
} constructor() {
super(...arguments);
this.insertImageSettings = {
//Location of the image path
path: 'http://localhost:62869/Images/',
saveUrl: 'http://localhost:62869/api/richtexteditor/SaveFile'
}; }<RichTextEditorComponent ref={richtexteditor => { this.rteObj = richtexteditor; }} insertImageSettings={this.insertImageSettings}>
<Inject services={[HtmlEditor, Toolbar, Image, Link, QuickToolbar]} /> </RichTextEditorComponent> |