TinyMCE & React

Just had to change a Draft.js based editor for something that worked with Chrome for Android and found TinyMCE Here is my attempt to get it working with both desktop and mobile

setTimeout in a loop

Why does all the output of a for loop appear at once when using setTimeout? for(var i = 0; i < 5; i++){ (function(i){ setTimeout(function(){ console.log('value is ', i); }, 3000); })(i); } When you run the above code after 3 seconds the output of all iterations of...

About the Author

James is an IT Professional based in Melbourne, Australia. He blogs about Information Technology, Open Source software, home renovations, good reads and travel.

Login

Blog History