This is a migrated thread and some comments may be shown as answers.

RAD Editor- Iframe src value not update in SPList

1 Answer 65 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Dev Team
Top achievements
Rank 2
Dev Team asked on 13 Jun 2011, 12:52 PM

Hi,

Currently we are using RADEDITOR control with the version of 5.3.2.0.By using this control we are adding the reports and storing in the sharepoint publishing page.So the report is storing the following format in the Sharepoint list.

<div><iframe id="iframe_1" src="http://webURL"></iframe></div>
<p>RAD EDITOR CONTROL<br>\r\n<br>\r\nRAD EDITOR CONTROL</p>

Now my requirment is i want to chage the src value from http into https under iframe control.Here i have more than
500 pages with the src value of http.So to update the value for each page,i have created separate utiltiy and getting the src value of the page.If the src value has http://,replacing with https:// under iframe control.Its updating fine in the Sharepoint List.

But the problem is when you update with <iframe> control,the <iframe> control is storing as Empty.When i fetch the item again am getting the folllowing format.

<div> </div>
<p>RAD EDITOR CONTROL<br>\r\n<br>\r\nRAD EDITOR CONTROL</p>

Content is storing (RAD EDITOR CONTROL) fine with out any issues.But am not sure Why its not updating with IFrame control in SPListItem update.Please let me know.Wating for your reply

With Regards,
Rajesh

 

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 15 Jun 2011, 07:59 AM
Hi Dev Team,

In order to help you further I will need some additional information. Could you please send me the code, which is replacing the src value. Also could you confirm in what scenario are you using RadEditor for MOSS. From your post I guess that it is list scenario, but can you verify this. Also could you try decoding the content before replacing the src value. You can use the following methods for encoding and decoding content:
Telerik.SharePoint.EditorTools.EscapeSpecialTags, Telerik.SharePoint.EditorTools.UnEscapeSpecialTags

Greetings,
Stanimir
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
WebParts for SharePoint
Asked by
Dev Team
Top achievements
Rank 2
Answers by
Stanimir
Telerik team
Share this question
or