You can copy or paste images in Rich Text Editor. In general, the local path is obtained by pasting images from local document. To display images, you can call the OnClientTextChange () function of RTE when you paste content from local documents. Using GetHtml () function, you can obtain the pasted content and extract the URL of the image, which is the local path referring the location in your drive. Send the URL to server side using Ajax post. In code behind, get the image from local reference and convert it to BMP image and store them in website location. On Ajax post success, get the image file names from post action and replace the existing URL with new location. This displays the images on copy paste to RTE. ASPX
C#
|
This page will automatically be redirected to the sign-in page in 10 seconds.