﻿ // JScript File
 
    function textCounter(field,maxlimit) {
        if (field.value.length > maxlimit) {
            field.value = field.value.substring(0, maxlimit);
            alert('Your input text was too long and has been trimmed!');
        }
    }

function TelerikEditor_OnClientLoad(editor, args)
{                  
   var editorObject = editor;
   //set the focus in the editor
   setTimeout(function()
   {
        editorObject.setFocus();
   }, 10);
}

