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

RadEditor showing below RichHtmlField

5 Answers 48 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Matthijs Wensveen
Top achievements
Rank 1
Matthijs Wensveen asked on 14 Dec 2009, 11:17 AM
Hello,

I'm using the "Use RadEditor to edit HTML fields" feature. This seems to be working reasonably well, except that the RadEditor is shown below the original PublishingWebControls:RichHtmlField editor. I expected this to be replaced by the RadEditor. Am I doing something wrong?

Also, it doesn't seem to be possible to use script tags in the editor (removed by sharepoint presumably), but in another site I've worked on, this does work (magically somehow). Any ideas?
I'm thinking of writing a hack that replaces script with zcript or whatever, when saving and back when rendering. How can I hook into the save / render calls?

Thanks in advance,
Matthijs Wensveen

5 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 14 Dec 2009, 01:14 PM
Hi Matthijs,

RadEditor is shown below the original PublishingWebControls:RichHtmlField editor. - Could you provide me with a screen shot where I can see the issue? Make sure that it shows the hole page layout and not only the problem area. This way I will be able to provide you with more adequate answer.

Here is how to enable scripts in the Lite version of RadEditor for MOSS.

RadEditor in WebPart:
Set (add if not present) the AllowScripts property to true in ConfigFile.xml, which is located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/4.x.x.x__1f131a624888eeed/RadControls/Editor folder.

RadEditor in WCM:
Set (add if not present) the AllowScripts property to true in ConfigFile.xml and AllowSpecialTags in the the current page using SharePoint Designer.

SharePoint forms scenario (Lists, Wikis, Blogs, etc.)
You cannot use Javascript in RadEditor in such scenario. There RadEditor does not have control over the presentation view which means that we cannot control the output when it is not in edit mode. 

If you are using the Full version of RadEditor for MOSS 5.x, review the following online help article http://www.telerik.com/help/aspnet-ajax/scripts-in-radeditor.html


Best wishes,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Matthijs Wensveen
Top achievements
Rank 1
answered on 14 Dec 2009, 02:28 PM
Hi,

"RadEditor in WCM", does that mean using the RadHtmlField control? I currently use the feature, but it's possible to change this. Is it required to use SharePoint designer? I have the field controls in an .ascx user control that is used on the page layout. I have AllowSpecialTags set to true in the .ascx file, but this doesn't seem to work. The ConfigFile.xml contains the AllowScripts property, set to True, to no avail.

I do only have version 5.0.0.0, so this might be the issue. Upgrading is problematic, since the customer is a large enterprise with version 5.0.0.0 deployed organisation-wide. However, the site I mentioned that does have this working, is deployed within the same organisation, with the same version of RadEditor. That site doesn't use the feature, but the RadHtmlField control directly.

The page is a publishing page in a rather standard page library. Does that imply the "SharePoint forms scenario (Lists, Wikis, Blogs, etc.)" scenario?

I have attached a screenshot to show the duplicate editor issue. The problematic area is highlighted in ...pink...ish.

Regards,
Matthijs Wensveen

0
Matthijs Wensveen
Top achievements
Rank 1
answered on 14 Dec 2009, 04:34 PM
I am now using the RadHtmlField control and that works fine. Still having issues with script though, but that is not the subject of this thread.

Thanks for your help,
Matthijs
0
Accepted
Stanimir
Telerik team
answered on 15 Dec 2009, 09:10 AM
Hello Matthijs,

I do only have version 5.0.0.0, so this might be the issue. Upgrading is problematic, since the customer is a large enterprise with version 5.0.0.0 deployed organisation-wide. - Unfortunately the problem is with the version of RadEditor for MOSS. I reviewed the release notes of the control and this problem is fixed in the next version. So at this point the only solution that I can provide you with is upgrading to newer version. Here is the online help article on how to upgrade to newer version of RadEditor for MOSS http://www.telerik.com/help/aspnet-ajax/upgrade_to_a_newer_version_of_radeditor_for_moss.html


Kind regards,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Matthijs Wensveen
Top achievements
Rank 1
answered on 15 Dec 2009, 10:54 AM
Thank you very much for your answer.

Just to let you know, it's possible to put the SafeControl and assemblyBinding elements in the machine.config file. You will need to add the appropriate configSection for this, though. This could make things easier when the solution package (.wsp) is deployed across a large number of sites.

Best regards,
Matthijs Wensveen
Tags
WebParts for SharePoint
Asked by
Matthijs Wensveen
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Matthijs Wensveen
Top achievements
Rank 1
Share this question
or