I am trying to insert a modal dialog return value to the RichText field (FullHTML) through Javascript. When i was digging on to the RichText field i found that each text that we give on the RichText field is stored within a <div> tag.The RichText field
itself is rendered in the following manner.
<iFrame ID="[RichText_CliendID_iframe]" its a hidden field>
<html>
<body>
<iFrame Baseline ID="[RichText_ClientID]"
<div>The text that we entered here</div>
<div>......</div>
I have tried getting the reference of the "RichText_ClientID" and created a <div> tag. But this doesn't work. When I tried getting the reference of the "RichText_ClientID_iframe" and then added a <div> tag to it. I am able to add to this (Have
observed this through Dev Tool bar), but couldn't able to see it on the field.
I am just relating one of the SharePoint OOTB behaviour to this "Insert ---> Upload File" (Displayed on the list forms ribbon button for the RichText fields). Using this option i will be able to upload a file to "Site Assets"
View Complete Post