I want to update the data inside the rich text field, however on updation the data is filled into the "Design" tab of the richtext field, instead of the "Source" tab due to which the format of data is gettting spoilt. Below is the code I am using to update the fields :
cdo = (ComponentData)_client.TryCheckOut(tcmId, null);
if (cdo.IsEditable.Value)
{
XElement xmlData;
XDocument doc;
doc = XDocument.Parse(cdo.Content);
xmlData = doc.Root;
var ns3 = xmlData.GetDefaultNamespace();
if (xmlData.Descendants(ns3 + "fieldname").Any())
{
xmlData.Descendants(ns3 + "fieldname").SingleOrDefault().Value = ShortdescRAW;
cdo.Content = doc.ToString();
}
_client.Update(cdo, null);
Which is displaying data as in the image], instead of as as a bullet list of items. Can someone please guide as to how can I insert data into the "source" tab instea dof the design field?
ShortdescRAW
?