PDA

View Full Version : vB3 WYSIWYG Editor - run JavaScript code onkeyup


Scandal
04-23-2017, 02:10 AM
Hi all!
I'm trying to run a block of code when user do keyup on the editor of vBulletin 3.

The relative vBulletin script is on /clientscript/vbulletin_textedit.js (you have to beautify it, for example via this page (http://jsbeautifier.org/), to see the code in humanity way :p ).

For example I have add the following code on the relative line, but with no result:
this.editdoc.addEventListener("keyup", function(){
alert('test!');
});

Any idea? :)

Scandal
04-28-2017, 07:10 AM
Any idea how to run the code? :p