<?php
wp_editor( $content, $editor_id, $settings = array() );
$settings = array(
'textarea_name'=>'wa_data[description]',
'textarea_rows'=> 20,
'wpautop' => false,
'dfw'=>true
);
wp_editor(stripslashes($row->description), 'description', $settings);
?>
If text editor page blank place the code in wp-config.php
define('SCRIPT_DEBUG', true)
wp_editor( $content, $editor_id, $settings = array() );
$settings = array(
'textarea_name'=>'wa_data[description]',
'textarea_rows'=> 20,
'wpautop' => false,
'dfw'=>true
);
wp_editor(stripslashes($row->description), 'description', $settings);
?>
If text editor page blank place the code in wp-config.php
define('SCRIPT_DEBUG', true)
Parameters
- $content
- (string) (required) Initial content for the editor.
- Default: None
- $editor_id
- (string) (required) HTML id attribute value for the textarea and TinyMCE. (may only contain lowercase letters and underscores...hyphens will cause editor to not display properly)
- Default: None
- $settings
- (array) (optional) An array of arguments.
- Default: array()
Arguments
- wpautop
- (boolean) (optional) Whether to use wpautop for adding in paragraphs
- Default: true
- media_buttons
- (boolean) (optional) Whether to display media insert/upload buttons
- Default: true
- textarea_name
- (string) (optional) The name assigned to the generated textarea and passed parameter when the form is submitted. (may include [] to pass data as array)
- Default: $editor_id
- textarea_rows
- (integer) (optional) The number of rows to display for the textarea
- Default: get_option('default_post_edit_rows', 10)
- tabindex
- (integer) (optional) The tabindex value used for the form field
- Default: None
- editor_css
- (string) (optional) Additional CSS styling applied for both visual and HTML editors buttons, needs to include <style> tags, can use "scoped"
- Default: None
- editor_class
- (string) (optional) Any extra CSS Classes to append to the Editor textarea
- Default: Empty string
- teeny
- (boolean) (optional) Whether to output the minimal editor configuration used in PressThis
- Default: false
- dfw
- (boolean) (optional) Whether to replace the default fullscreen editor with DFW (needs specific DOM elements and CSS)
- Default: false
- tinymce
- (array) (optional) Load TinyMCE, can be used to pass settings directly to TinyMCE using an array
- Default: true
- quicktags
- (array) (optional)
Load Quicktags, can be used to pass settings directly to Quicktags
using an array. Set to false to remove your editor's Visual and Text
tabs.
- Default: true