Hello, is there an efficient way of grabbing ONLY the text from CKEditor? I don't want the HTML, just the text, and then get the length of that.
I've added functionality for specifying a maxlength, and it works exactly how I want it to, but I'm using the GetData() function and stripping out the HTML with RegEx. This occurs on each keystroke so it's slow. It's not horribly slow in all the newer browsers since their JS engines are so fast (chrome, IE8, FF 3.5), but IE7 and especially IE6 choke a little bit with a thousand characters of text. I'm pretty sure it's the getData() function that's doing it, so I'm just wondering if there's a quicker way to grab the text length (not including the HTML generated by CKEditor).
Thanks!
I've added functionality for specifying a maxlength, and it works exactly how I want it to, but I'm using the GetData() function and stripping out the HTML with RegEx. This occurs on each keystroke so it's slow. It's not horribly slow in all the newer browsers since their JS engines are so fast (chrome, IE8, FF 3.5), but IE7 and especially IE6 choke a little bit with a thousand characters of text. I'm pretty sure it's the getData() function that's doing it, so I'm just wondering if there's a quicker way to grab the text length (not including the HTML generated by CKEditor).
Thanks!