Changeset 27901 for trunk/src/wp-includes/class-wp-editor.php
- Timestamp:
- 04/02/2014 02:41:24 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-editor.php
r27897 r27901 25 25 private static $has_medialib = false; 26 26 private static $editor_buttons_css = true; 27 private static $drag_drop_upload = false; 27 28 28 29 private function __construct() {} … … 39 40 * @type string $default_editor When both TinyMCE and Quicktags are used, set which 40 41 * editor is shown on page load. Default empty. 42 * @type bool $drag_drop_upload Whether to enable drag & drop on the editor uploading. Default false. 43 * Requires the media modal. 41 44 * @type string $textarea_name Give the textarea a unique name here. Square brackets 42 45 * can be used here. Default $editor_id. … … 64 67 'media_buttons' => true, 65 68 'default_editor' => '', 69 'drag_drop_upload' => false, 66 70 'textarea_name' => $editor_id, 67 71 'textarea_rows' => 20, … … 124 128 $switch_class = 'html-active'; 125 129 $toolbar = $buttons = $autocomplete = ''; 130 131 if ( $set['drag_drop_upload'] ) { 132 self::$drag_drop_upload = true; 133 } 126 134 127 135 if ( ! empty( $set['editor_height'] ) ) … … 981 989 baseURL: "<?php echo self::$baseurl; ?>", 982 990 suffix: "<?php echo $suffix; ?>", 991 <?php 992 993 if ( self::$drag_drop_upload ) { 994 echo 'dragDropUpload: true,'; 995 } 996 997 ?> 983 998 mceInit: <?php echo $mceInit; ?>, 984 999 qtInit: <?php echo $qtInit; ?>,
Note: See TracChangeset
for help on using the changeset viewer.