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

[Solved] Add r.a.d.editor Web Part to onet.xml

9 Answers 151 Views
RadEditor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anna Smith
Top achievements
Rank 1
Anna Smith asked on 29 Dec 2005, 02:45 PM
Hi there

I'm trying to define a custom template by editing the onet.xml file in SharePoint Portal Server (as described in http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/tsptCustomModule_SV01016240.asp).

My question is, how do I add the r.a.d. editor Web Part to onet.xml so it appears in the custom template?

For example, in onet.xml, a Listings Web Part is added as follows:

<AllUsersWebPart WebPartZoneID="TopZone" WebPartOrder="1"><![CDATA[<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2"><Assembly>Microsoft.SharePoint.Portal, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
<TypeName>Microsoft.SharePoint.Portal.WebControls.ListingSummary</TypeName>
<Title>Grouped Listings</Title><Description>Shows listings in the portal.</Description><PartOrder>1</PartOrder><FrameType>TitleBarOnly</FrameType>
<AllowMinimize>false</AllowMinimize>
<AllowRemove>false</AllowRemove>
<IsVisible>true</IsVisible>
<DisplayTemplate xmlns="urn:schemas-microsoft-com:sharepoint:ListingSummary">TopicsItems</DisplayTemplate><GroupBy xmlns="urn:schemas-microsoft-com:sharepoint:ListingSummary">Group</GroupBy><SortOrder xmlns="urn:schemas-microsoft-com:sharepoint:ListingSummary">Order</SortOrder><SortDirection xmlns="urn:schemas-microsoft-com:sharepoint:ListingSummary">Ascending</SortDirection></WebPart>]]></AllUsersWebPart>

What is the TypeName for the r.a.d. editor Web Part, and how would you include actual HTML content?

Cheers
Anna

9 Answers, 1 is accepted

Sort by
0
Anna Smith
Top achievements
Rank 1
answered on 29 Dec 2005, 02:59 PM
Got it... just in case anyone else wants to try this

<AllUsersWebPart WebPartZoneID="TopZone" WebPartOrder="2">
<![CDATA[<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">
<Assembly>RadWebParts,Version=2.0.0.0,Culture=neutral,PublicKeyToken=1f131a624888eeed
</Assembly
>
<TypeName>Telerik.WebParts.RadEditorWebPart</TypeName>
<Title>Content Editor</Title>
<Description>Enter basic page content here.</Description>
<PartOrder>1</PartOrder>
<FrameType>TitleBarOnly</FrameType>
<AllowMinimize>false</AllowMinimize>
<AllowRemove>false</AllowRemove>
<IsVisible>false</IsVisible>
</WebPart>]]></AllUsersWebPart>
0
Anna Smith
Top achievements
Rank 1
answered on 29 Dec 2005, 04:47 PM
Ah - I still don't know how to add actual HTML content inside here.

If you're using the Content Editor web part, you can include content using something like

<ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
<Content xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"><&lt;div class="ms-pagetitle"&gt;My Text Here&lt;/div&gt;</Content>


Does anyone know what the equivalent would be for r.a.d.editor?

Thanks
Anna
0
Vassil Petev
Telerik team
answered on 29 Dec 2005, 04:57 PM
Hi Anna,

Please, review the HELP documentation and follow the steps there - you should be able to get the editor running in no time.

Let us know if we are missing something.


Best wishes,
Robert
the telerik team
0
Anna Smith
Top achievements
Rank 1
answered on 29 Dec 2005, 05:16 PM
Hi Robert

Thanks for your email.

I have the editor working beautifully in the SharePoint interface, but what I'd like to know is whether I can add content in the .dwp file itself - so when you create a new r.a.d. editor Web Part, it appears with some default content.

For example, when you create a new r.a.d. editor Web Part, it'd be useful to have instructions on screen saying "This is a r.a.d.editor Web Part. To edit the content here, click on... " etc (a bit like the SharePoint Content Editor). Is there a way of including pre-formatted content inside the .dwp file?

I know you can use <Content> tags inside the SharePoint Content Editor .dwp file, so I was wondering if something similar was possible inside the r.a.d. editor Web Part.

Thanks
Anna
0
Atanas Korchev
Telerik team
answered on 30 Dec 2005, 08:40 AM
Hi Anna,

This is possible to achieve with r.a.d.editor SharePoint Edition. You can edit the dwp file and paste the following before the end of the WebPart tag (mind the xmlns attribute):
<Text xmlns="Telerik.WebParts">This is a r.a.d.editor Web Part.</Text>


Regards,
Albert
the telerik team
0
Anna Smith
Top achievements
Rank 1
answered on 30 Dec 2005, 10:55 AM
This works very well. Thanks!

In case this helps anyone else - it's also possible to include native HTML tags in the text, e.g. as follows:

<Text xmlns="Telerik.WebParts">&lt;p&gt;This is a &lt;b&gt;r.a.d. editor&lt;/b&gt; Web Part.&lt;/p&gt;<Text>

Cheers
Anna
0
Utpal
Top achievements
Rank 1
answered on 26 Apr 2007, 05:55 PM
Hi,

I am trying to install R.A.D editor for sharepoint. I want the rad editor be the default editor list in wss 3.0. 
I installed and telnek rad editor is available only as web part. How can I
make   it the default editor of Sharepoint List. It is urgent as I have demo
next week. Please help!

Thanks,

Utpal
0
Georgi Tunev
Telerik team
answered on 27 Apr 2007, 06:15 AM
Hi Utpal,

Please check the RadEditorManual_sharepoint.chm file that is included in the distribution, section Installation and deployment > Replacing default SharePointEditor > Installation - you will find the needed information there.




Regards,
Georgi Tunev
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Koen Zomers
Top achievements
Rank 1
answered on 11 Mar 2009, 11:56 AM
For anyone who is Googling and found this thread and is looking for a way to configure a DWP webpart package or include it in a module in onet.xml, I found out how to do this after some experimenting. I wish to share this information with the rest of the world.

In case of adding it to a onet.xml file:
 
    <Module Name="ModuleName" Url="" Path="ModulePath">  
      <File Url="default.aspx" NavBarHome="True" Path="default.aspx">  
        <AllUsersWebPart WebPartZoneID="Left" WebPartOrder="1">  
        <![CDATA[
        <WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">
          <Title>Welcome to this editor!</Title>
          <FrameType>Default</FrameType>
          <Description>Cross-browser rich content editor from Telerik</Description>
          <IsIncluded>true</IsIncluded>
          <ZoneID>Left</ZoneID>
          <PartOrder>0</PartOrder>
          <FrameState>Normal</FrameState>
          <Height />
          <Width />
          <AllowRemove>true</AllowRemove>
          <AllowZoneChange>true</AllowZoneChange>
          <AllowMinimize>true</AllowMinimize>
          <AllowConnect>true</AllowConnect>
          <AllowEdit>true</AllowEdit>
          <AllowHide>true</AllowHide>
          <IsVisible>true</IsVisible>
          <DetailLink />
          <HelpLink />
          <HelpMode>Modeless</HelpMode>
          <Dir>Default</Dir>
          <PartImageSmall />
          <MissingAssembly>Cannot import this Web Part.</MissingAssembly>
          <PartImageLarge>/_layouts/images/radeditor.gif</PartImageLarge>
          <IsIncludedFilter />
          <Assembly>RadEditorSharePoint, Version=4.5.3.0, Culture=neutral, PublicKeyToken=1f131a624888eeed</Assembly>
          <TypeName>Telerik.SharePoint.RadEditorWebPart</TypeName>
          <Text xmlns="Telerik.SharePoint">Hello World!</Text>
        </WebPart>
        ]]> 
        </AllUsersWebPart>          
      </File> 
    </Module> 

Mind the Text line which is different from the one in the post earlier in this topic, but in contrary to that one, this one works for me. The text property sets the default text in the editor after creation.

In case of using it in a DWP file, it regards the text marked in pink only.

Good luck!
Tags
RadEditor
Asked by
Anna Smith
Top achievements
Rank 1
Answers by
Anna Smith
Top achievements
Rank 1
Vassil Petev
Telerik team
Atanas Korchev
Telerik team
Utpal
Top achievements
Rank 1
Georgi Tunev
Telerik team
Koen Zomers
Top achievements
Rank 1
Share this question
or