I was wondering why the enter key is not being included in the get_text().trim().length when I press enter. Only when I type in another key (alphabets) is the enter key being taken into account.
I am trapping the onkeyup and trying to update the text count.
function GetDraggableTextLength()
{
var rtfEditor = $find("<%=popupWin_txtValue.ClientID %>");
return rtfEditor.get_text().trim().length;
}
function HandleKeyUp()
{
var latestCharCount = GetDraggableTextLength();
My QA is complaining, they press a lot of enter, they don't see the length and all of a sudden, when they press a all of a sudden they reached the maximum text length.
Thanks
I am trapping the onkeyup and trying to update the text count.
function GetDraggableTextLength()
{
var rtfEditor = $find("<%=popupWin_txtValue.ClientID %>");
return rtfEditor.get_text().trim().length;
}
function HandleKeyUp()
{
var latestCharCount = GetDraggableTextLength();
My QA is complaining, they press a lot of enter, they don't see the length and all of a sudden, when they press a all of a sudden they reached the maximum text length.
Thanks