$('#link_title').bind('paste', function () {This has been thoroughly tested in whatever version of Chrome I'm running and seems to work fine. The only limitation is that there will also be a warning if you paste exactly 72 characters and nothing is truncated -- all javascript can tell is that after you pasted something, you were at the length limit.
var element = $(this);
setTimeout(function () {
if(element.val().length==element.attr('maxlength') && !$('#paste_warning').length) element.after("<span id='#paste_warning'>Warning: Your pasted title may have been too long.</span>");
}, 0);
});
"And the Lord spake, saying, 'First shalt thou take out the Holy Pin. Then, shalt thou count to three, no more, no less. Three shalt be the number thou shalt count, and the number of the counting shalt be three. Four shalt thou not count, nor either count thou two, excepting that thou then proceed to three. Five is right out. Once the number three, being the third number, be reached, then lobbest thou thy Holy Hand Grenade of Antioch towards thou foe, who being naughty in my sight, shall snuff it.'"posted by terrapin at 11:43 AM on January 23
When you type in the title bar for a new post, it stops letting you type after a certain point. Is the cutoff in the editing box longer than the real life cutoff? Or are people just not paying attention when their finger clicking stops making words?
posted by phunniemee at 7:34 AM on January 23