WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#18338 closed feature request (duplicate)

add $name arg to the_editor () function

Reported by: alex-ye Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.2.1
Component: Editor Keywords: 2nd-opinion needs-patch
Focuses: Cc:

Description

Hi every one , I have a small suggestion about add ability to separate ID attribute and NAME attribute , this may help devlopers to include the editor in thier options page or in thier own forms .

example of function args:

the_editor($content, $atts = array ( 'id' => 'content' , 'name' => 'content' ), $prev_id = 'title', $media_buttons = true, $tab_index = 2 )

Change History (3)

comment:1 andrewryno3 years ago

Related: #17144

Looks like the_editor() is also deprecated at this point. Use wp_editor().

Last edited 3 years ago by andrewryno (previous) (diff)

comment:2 scribu3 years ago

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

Please make any suggestions related to the editor API here: #17144

comment:3 in reply to: ↑ description azaozz3 years ago

Replying to alex-ye:

I have a small suggestion about add ability to separate ID attribute and NAME attribute...

This is an option in the new API: http://core.trac.wordpress.org/browser/trunk/wp-includes/class-wp-editor.php#L45

Note: See TracTickets for help on using tickets.