mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Update mce-view.js and the wpview TinyMCE plugin, and use them to show gallery previews in the Visual editor, props gcorne, see #26959
git-svn-id: https://develop.svn.wordpress.org/trunk@27408 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -242,6 +242,7 @@ final class _WP_Editors {
|
||||
'wpgallery',
|
||||
'wplink',
|
||||
'wpdialogs',
|
||||
'wpview',
|
||||
) ) );
|
||||
|
||||
if ( ( $key = array_search( 'spellchecker', $plugins ) ) !== false ) {
|
||||
@@ -501,6 +502,9 @@ final class _WP_Editors {
|
||||
if ( self::$has_medialib ) {
|
||||
add_thickbox();
|
||||
wp_enqueue_script('media-upload');
|
||||
|
||||
if ( self::$has_tinymce )
|
||||
wp_enqueue_script('mce-view');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user