Changeset 2816:face73bc2bbb for plugins/dcCKEditor
- Timestamp:
- 11/25/14 20:00:54 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcCKEditor/_post_config.php
r2761 r2816 41 41 42 42 /* Retrieve editor from popup */ 43 43 $.active_editor = null; 44 44 $.getEditorName = function getEditorName() { 45 45 return $.active_editor; 46 46 } 47 chainHandler(window, 'onbeforeunload', function(e) { 48 if (e == undefined && window.event) { 49 e = window.event; 50 } 51 52 var editor = CKEDITOR.instances[$.getEditorName()]; 53 if (editor.checkDirty()) { 54 e.returnValue = confirmClosePage.prompt; 55 return confirmClosePage.prompt; 56 } 57 return false; 58 }); 47 59 })(jQuery); 48 60
Note: See TracChangeset
for help on using the changeset viewer.