Make WordPress Core


Ignore:
Timestamp:
09/22/2006 07:04:41 AM (20 years ago)
Author:
ryan
Message:

Tabbed editor from skeltoac. fixes #2829

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/autosave.js.php

    r4185 r4206  
    7373function autosave() {
    7474        var form = $('post');
     75        var rich = tinyMCE.getInstanceById('content') ? true : false;
    7576
    7677        autosaveAjax = new sack();
    7778
    7879        /* 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 ) {
    8081                autosaveAjax.setVar("content", form.content.value);
    8182        } else {
    … …  
    111112                autosaveAjax.setVar("excerpt", form.excerpt.value);             
    112113               
    113         if ( typeof tinyMCE == "undefined" || tinyMCE.configs.length < 1 ) {
     114        if ( typeof tinyMCE == "undefined" || tinyMCE.configs.length < 1 || rich == false ) {
    114115                autosaveAjax.setVar("content", form.content.value);
    115116        } else {
Note: See TracChangeset for help on using the changeset viewer.