Asp net core Razor pages (Rich Text Editor Images)

In ASP NET Core RAZOR pages
How do i remove the ability to upload images and only use images from the web?

IE. I want to only use the lower part of this:

RTE Image insert

2 Replies 1 reply marked as answer

SI Simon March 4, 2021 11:44 PM UTC

I am using the current css workaround:

.e-img-uploadwrap, .e-linkheader {
    display: none;
}

Maybe theres a better way?


RK Revanth Krishnan Syncfusion Team March 5, 2021 06:16 AM UTC

Hi Simon, 
 
 
Greetings from Syncfusion support. 
 
 
We have validated your query “How do I remove the ability to upload images and only use images from the web. I have used a workaround using the CSS. Is there a better way”. 
 
The Rich Text Editor doesn’t have any API to restrict the display of the image upload option, but it can be restricted by setting the CSS styles “display: none” to the class “.e-img-uploadwrap, .e-linkheader” you shared. 
 
Styles: 
 
.e-img-uploadwrap, .e-linkheader { 
   display: none; 
} 
 
Please let us know if you have any further queries. 
 
Regards, 
Revanth 


Marked as answer
Loader.
Up arrow icon