Default Message in RadHtmlField

2 posts, 0 answers
  1. Ajay
    Ajay avatar
    4 posts
    Member since:
    Feb 2012

    Posted 17 Feb 2012 Link to this post


    I am using Telric control 5.8 in sharepoint 2007.i want default message using "RadHtmlField" in content area.

    please do the needful.

  2. Stanimir
    Stanimir avatar
    1653 posts

    Posted 20 Feb 2012 Link to this post


    You can achieve the desired functionality on the client side.
    1. Add the following element in the ConfigFile.xml, which is located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder:
    <property name="OnClientLoad">OnClientLoad</property>

    2. Add the following javascript code in the MOSSEditorTools.js, which is located in the mentioned above folder:
    function OnClientLoad(editor, args)
        var html = editor.get_html(true);
        if (html.match(/^\s*$/) != null)
            editor.set_html("Default content");

    the Telerik team
    Learn how the Telerik controls can be integrated in SharePoint 2007/2010 from this resource. To watch them in action, explore our online SharePoint 2010 and SharePoint 2007 demo sites.

Back to Top