i am trying to add functionality where the editor shows some default text whenever its content is empty. i have the following wired up but it is not working. any help would be great!
<script type="text/javascript">
function OnClientLoad(editor, args)
{
var element = document.all ? editor.get_document().body : editor.get_document();
$telerik.addExternalHandler(element,
"focus", function(e)
{
var sData = editor.get_text();
if (sData == "enter content here")
{
editor.set_html(
"");
}
});
$telerik.addExternalHandler(element,
"blur", function(e)
{
var sData = editor.get_text();
if (sData == "")
{
editor.set_html(
"enter content here");
}
});
}
</script>
