X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/256a3b381f63716209b3527d0a14442ae570c283..4713a14935b83517997f3c88f808eb41da55033d:/wp-includes/class-wp-editor.php diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 16a2e5e1..022882f3 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -24,26 +24,70 @@ 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) { + /** + * Parse default arguments for the editor instance. + * + * @param string $editor_id ID for the current editor instance. + * @param array $settings { + * Array of editor arguments. + * + * @type bool $wpautop Whether to use wpautop(). Default true. + * @type bool $media_buttons Whether to show the Add Media/other media buttons. + * @type string $default_editor When both TinyMCE and Quicktags are used, set which + * editor is shown on page load. Default empty. + * @type bool $drag_drop_upload Whether to enable drag & drop on the editor uploading. Default false. + * Requires the media modal. + * @type string $textarea_name Give the textarea a unique name here. Square brackets + * can be used here. Default $editor_id. + * @type int $textarea_rows Number rows in the editor textarea. Default 20. + * @type string|int $tabindex Tabindex value to use. Default empty. + * @type string $tabfocus_elements The previous and next element ID to move the focus to + * when pressing the Tab key in TinyMCE. Defualt ':prev,:next'. + * @type string $editor_css Intended for extra styles for both Visual and Text editors. + * Should include