Insert image in rich text control

  • 7 December 2018
  • 1 reply
  • 8 views

Hi All,

 

I have a requirement where I need to save an image to sharepoint and insert this url into rich text control. Exact requirement is to insert this url exactly at the cursor position. I am finding it difficulty to insert at the exact cursor position. Any idea how to do that? 

 

Regards,

Madhu


1 reply

Badge +15

Hi,


 


You will most probably have to use javascript for this. There is no rules in SmartForms that can allow you to pick up where exactly the cursor is at in your rich text control.


 


For text area or text box, there is a way to detect where the cursor is at via javascript. Rich text control is a lot trickier, because the rich text control is actually using a <div>, which does not come with the properties that store the cursor location.


 

Reply