X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/61343b82c4f0da4c68e4c6373daafff4a81efdd1..8ab4a4532479e8db471032b51042ec8c4716d091:/wp-includes/class-wp-editor.php?ds=sidebyside diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 9ab3feb5..ae026215 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -24,26 +24,84 @@ final class _WP_Editors { private static $has_quicktags = false; private static $has_medialib = false; private static $editor_buttons_css = true; + private static $drag_drop_upload = false; private function __construct() {} - public static function parse_settings($editor_id, $settings) { - $set = wp_parse_args( $settings, array( - 'wpautop' => true, // use wpautop? - 'media_buttons' => true, // show insert/upload button(s) - 'textarea_name' => $editor_id, // set the textarea name to something different, square brackets [] can be used here - 'textarea_rows' => 20, - 'tabindex' => '', - 'tabfocus_elements' => ':prev,:next', // the previous and next element ID to move the focus to when pressing the Tab key in TinyMCE - 'editor_css' => '', // intended for extra styles for both visual and Text editors buttons, needs to include the