How to create event handler for keypress event on ckeditor
After googling 30 mins for adding a 'keypress' event handler on CKEDITOR, finally i got this shit... >.< CKEDITOR.instances['textarea_id'].on('contentDom', function() { this.document.on('keydown', function(e){ console.log('Do what ever you want to do')…


3rd May 2013 at 10:35 AM   9133 Views  0 Comments

Javascript for showing yes/no confirmation before delete
Here is a simple javascript code which you can use to show confirmation message(YES/NO) when user click on delete button. Javascript Code function confirmDelete() { var agree = confirm("Are you sure you want to delete this message"); if (agree) { return…


10th May 2012 at 11:42 AM   1100 Views  0 Comments