Make WordPress Core

Opened 16 years ago

Closed 14 years ago

#6431 closed defect (bug) (duplicate)

Cannot use two editor instances created with the_editor() on the same edit page

Reported by: mastermind's profile mastermind Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: Administration Keywords: the_editor
Focuses: Cc:


I have the following problem:

I'm writing a plugin for WP 2.5 that inserts a second editor on the page editing page, using the function the_editor(). The relevant code is:

function seco_editor()
    <div id="seco_editorcontainer" class="postarea">
      <h3><?php _e('Secondary content', 'seco'); ?></h3>
      <?php the_editor($mystuff, 'seco_content', 'content', true, 3); ?>
add_action('edit_page_form', 'seco_editor');
add_action('edit_form_advanced', 'seco_editor');

It looks ok at first sight, and it works ok when visual editing is disabled. But when you use a quicktag from the upper editor, it will insert in the lower one. The lower editor works, though.

There are even worse problems in WYSIWYG mode: In the second editor, the iconbar is missing until "visual" is clicked. Then, the editor instances seem to interfer, both seem to be damaged (especially switching from visual to HTML mode), although basic WYSIWYG operations work.

I would expect that it is possible to have more than one instance on one page. (For example, it would be great if the excerpt textarea could also have WYSIWYG capabilities added via a plugin.)

Change History (3)

#1 @lloydbudd
16 years ago

  • Version set to 2.5

#2 @Denis-de-Bernardy
15 years ago

  • Component changed from General to Administration

#3 @dd32
14 years ago

  • Milestone 2.9 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

This came up again: #10517 and was closed as wontfix.

Note: See TracTickets for help on using tickets.