id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 8637,CKeditor isn't picked up by jQuery :input,fooquency,,"I wish to add the 'Are you sure you want to leave this page' dialog to avoid page editors losing material accidentally. jQuery provides a useful :input selector, which means that a change to any form input/textarea/select/button widget can be used to trigger the dialog using: {{{ function removeCheck() { window.onbeforeunload = null; } $(document).ready(function() { $(':input').one('change', function() { window.onbeforeunload = function() { return 'Leaving this page will cause edits to be lost. Press the submit button on the page if you wish to save your data.'; } }); $('input[type=submit]').click(function() { removeCheck() }); }); }}} This certainly works for normal textareas. However, when CKeditor is added, this doesn't then get picked up: {{{