Ticket #19103: class-wp-editor.diff
File class-wp-editor.diff, 1.1 KB (added by , 13 years ago) |
---|
-
wp-includes/class-wp-editor.php
47 47 */ 48 48 function editor( $content, $editor_id, $settings = array() ) { 49 49 50 $set = wp_parse_args( $settings, array(50 $set = apply_filters( 'the_editor_settings', wp_parse_args( $settings, array( 51 51 'wpautop' => true, // use wpautop? 52 52 'media_buttons' => true, // show insert/upload button(s) 53 53 'textarea_name' => $editor_id, // set the textarea name to something different, square brackets [] can be used here … … 59 59 'dfw' => false, // replace the default fullscreen with DFW (needs specific DOM elements and css) 60 60 'tinymce' => true, // load TinyMCE, can be used to pass settings directly to TinyMCE using an array() 61 61 'quicktags' => true // load Quicktags, can be used to pass settings directly to Quicktags using an array() 62 ) ) ;62 ) ) ); 63 63 64 64 $this->this_tinymce = !empty($set['tinymce']) && $this->can_richedit; 65 65 $this->this_quicktags = !empty($set['quicktags']);