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:
Andrew Ozz
2014-03-05 07:00:18 +00:00
parent bceb10680b
commit 57ac5b6015
7 changed files with 730 additions and 425 deletions

View File

@@ -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');
}
}