Good day I trying use
('textarea.ckeditor').keyup(function() {
alert('textarea')
if (this.value.length > 100)
this.value = this.value.substr(0, 100);
});
And this is a problem even have no alert in this case?, What can I do to use key up function in ckeditor

Here I have a code which
Here I have a code which alert substr string in 50 charecters, how can I insert this string in CKEDITOR textarea
function ck() { var editor = CKEDITOR.replace('editor1_1'); editor.on("instanceReady", function(){ this.document.on("keyup", ck_jq); /* this.document.on("paste", ck_jq); */ }); } }); function ck_jq() { var len = CKEDITOR.instances['editor1_1'].getData().replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi, '').replace(/^\s+|\s+$/g, ''); if (len.length > 50){ len = len.substr(0, 50); alert(len); } }