Reputation: 4461
I have a few editors on one page. They are stored in an array.
How to determine the editor where I enter text?
for(var i = 0; i < types.length; i++) {
editors[types[i]].on('input', function() {
console.log( ? ); // How to get a current editor?
//console.log(editors[types[i]]); // Doesn't work
});
}
Thanks in advance.
Upvotes: 0
Views: 285