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

HTML editor for SharePoint default content

3 Answers 55 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mai
Top achievements
Rank 1
Mai asked on 19 May 2015, 12:31 PM

I using Telerik for SharePoint on a page layout I am using the tag below

<telerik:RadHtmlField id="EnglishContent" FieldName="English Content" runat="server"> </telerik:RadHtmlField>

My customer requires to have a default text value inside this editor every time the user creates new page from the page layout. When I am trying to use rhe <content> tag I got an error that the tag content is not recognized as a Rad HTML Field tag.

3 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 22 May 2015, 06:19 AM
Hello Mai,

You cannot use RadEditor properties inside the RadHtmlField Web Part. You should firstly point the contig file to be used (http://www.telerik.com/help/aspnet-ajax/moss-sp2010-setting-config-tools-files-in-wcm.html), and then you can modify the controls properties via the ConfigFile (http://www.telerik.com/help/aspnet-ajax/moss-sp2010-set-properties-via-config-file.html).

I should warn you that the Content property will override the text each time the page is edited. Therefore, I can suggest using the EmptyMessage property to add initial text:
<property name="EmptyMessage">add some text</property>


Regards,
Ianko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Mai
Top achievements
Rank 1
answered on 27 May 2015, 09:10 AM

This Empty message property is not working for me . Actually I have two rad editor controls, one for Arabic content and one for English content and even if empty message working both Arabic & English content will be the same.

Any idea about how to have an English default Content and Arabic default Content 

 

Regards,

Mai

0
Ianko
Telerik team
answered on 28 May 2015, 10:15 AM
Hi Mai,

The answer to this question entirely depends on how the SharePoint site is localized. If there are different sites for each language, then you can go with the approach to have different config files for the different sites—http://www.telerik.com/help/aspnet-ajax/moss-sp2010-different-configuration-files-for-different-webs.html.

If the localization is handled with different approach, you can handle the OnClientLoad event (http://www.telerik.com/help/aspnet-ajax/moss-sp2010-using_radeditors_client-side_events_in_sharepoint.html), and use the editor's client-side set_emptyMessage() method to change the message, with a localization property or plain string value.

Regards,
Ianko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Editor
Asked by
Mai
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Mai
Top achievements
Rank 1
Share this question
or