--- a/wp/wp-includes/js/tinymce/plugins/wpgallery/plugin.js Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-includes/js/tinymce/plugins/wpgallery/plugin.js Tue Dec 15 13:49:49 2020 +0100
@@ -57,7 +57,7 @@
}
}
- // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('...');
+ // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('...').
editor.addCommand( 'WP_Gallery', function() {
editMedia( editor.selection.getNode() );
});
@@ -71,7 +71,7 @@
}
if ( node.nodeName === 'IMG' && dom.getAttrib( node, 'data-wp-media' ) ) {
- // Don't trigger on right-click
+ // Don't trigger on right-click.
if ( event.button !== 2 ) {
if ( dom.hasClass( node, 'wp-media-selected' ) ) {
editMedia( node );
@@ -85,7 +85,7 @@
}
});
- // Display gallery, audio or video instead of img in the element path
+ // Display gallery, audio or video instead of img in the element path.
editor.on( 'ResolveName', function( event ) {
var dom = editor.dom,
node = event.target;
@@ -98,7 +98,7 @@
});
editor.on( 'BeforeSetContent', function( event ) {
- // 'wpview' handles the gallery shortcode when present
+ // 'wpview' handles the gallery shortcode when present.
if ( ! editor.plugins.wpview || typeof wp === 'undefined' || ! wp.mce ) {
event.content = replaceGalleryShortcodes( event.content );
}