Make WordPress Core

Opened 14 years ago

Closed 10 years ago

#15069 closed defect (bug) (fixed)

Autosave function assumes that there is only on tinyMCE on the page

Reported by: karevn's profile karevn Owned by:
Milestone: 3.9 Priority: normal
Severity: normal Version: 3.0.1
Component: Autosave Keywords: 3.2-early
Focuses: Cc:


Autosave javascript assumes there is only one tinyMCE instance on the post editor page, thus breaking autosave feature under the next circumstances:

  1. Content editor is in HTML mode
  2. Some custom tinyMCE instances are added to the page by some plugin or theme.

A patch that fixes that problem is attached.

Attachments (1)

autosave-patch.patch (681 bytes) - added by karevn 14 years ago.
The patch that fixes the problem for wp 3.0.1

Download all attachments as: .zip

Change History (7)

14 years ago

The patch that fixes the problem for wp 3.0.1

#1 @azaozz
14 years ago

This should work properly with the default editor (id = content) however WordPress allows the id to be passed to the_editor function. If the write/edit pages for custom post types use that function and pass different id, that would break autosave for them.

#2 @scribu
14 years ago

A related bug: autosave triggers JS error when there are no editors at all (custom post type doesn't support 'editor')

#3 @johnbillion
14 years ago

  • Cc johnbillion@… added

#4 @filosofo
13 years ago

  • Keywords 3.2-early added; autosave javascript plugins tinyMCE removed
  • Milestone changed from Awaiting Review to Future Release

#5 @mikeschinkel
13 years ago

  • Cc mikeschinkel@… added

#6 @azaozz
10 years ago

  • Milestone changed from Future Release to 3.9
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [26995].

Note: See TracTickets for help on using tickets.