Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Developing with Sitefinity > RadEditor and Default Text

RadEditor and Default Text

  • Craig Taylor avatar

    Posted on Feb 3, 2011 (permalink)

    I've created a custom module.

    I have a RadEditor within the edit page. When this page is displayed the RadEditor has the text "Type your content here...". I don't want this text to show up at all that is I want the RadEditor to be blank.

    I've tried adding the <Content></Content> attribute in the ascx page and also I've tried adding 

    <script runat="server" language="C#">
        protected void Page_Load
            (
            object sender,
            EventArgs e)
        {
            if(!Page.IsPostBack)   
                    contentEditor.Content = "";
        }
          
        // clear the text when you hit save button
        protected void saveButton1_Click(object sender, EventArgs e)
        {
            contentEditor.Content = contentEditor.Content.Replace("Type your content here...", "");
        }
    </script>

    Neither approach works.

    Any help would be much appreciated.

    Regards

    Craig

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Feb 3, 2011 (permalink)

    Hi Craig,

    Could you tell me which view you are trying to modify. The text you see is shown when you create a new content item. Most probably you are not adding the code on the right place.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • Yash avatar

    Posted on Jan 27, 2012 (permalink)

    Hi Ivan Dimitrov,
    I have the same problem. I want to change the default text but I am unable to do so (because I don't know where to start).
    I am new to Sitefinity and any help or pointers would be highly appreciated.

    Thanks,

    Yash

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Jan 30, 2012 (permalink)

    Hello,

    First you need to map the external template for the view you want to modify, then you need to change the template as shown above to get the initial text changed.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Developing with Sitefinity > RadEditor and Default Text