Changeset 4206 for trunk/wp-includes/js/autosave.js.php
- Timestamp:
- 09/22/2006 07:04:41 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/js/autosave.js.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/autosave.js.php
r4185 r4206 73 73 function autosave() { 74 74 var form = $('post'); 75 var rich = tinyMCE.getInstanceById('content') ? true : false; 75 76 76 77 autosaveAjax = new sack(); 77 78 78 79 /* Gotta do this up here so we can check the length when tinyMCE is in use */ 79 if ( typeof tinyMCE == "undefined" || tinyMCE.configs.length < 1 ) {80 if ( typeof tinyMCE == "undefined" || tinyMCE.configs.length < 1 || rich == false ) { 80 81 autosaveAjax.setVar("content", form.content.value); 81 82 } else { … … 111 112 autosaveAjax.setVar("excerpt", form.excerpt.value); 112 113 113 if ( typeof tinyMCE == "undefined" || tinyMCE.configs.length < 1 ) {114 if ( typeof tinyMCE == "undefined" || tinyMCE.configs.length < 1 || rich == false ) { 114 115 autosaveAjax.setVar("content", form.content.value); 115 116 } else {
Note:
See TracChangeset
for help on using the changeset viewer.