]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/tinymce/plugins/wpgallery/editor_plugin_src.js
WordPress 3.8
[autoinstalls/wordpress.git] / wp-includes / js / tinymce / plugins / wpgallery / editor_plugin_src.js
index 986304dc62bf44071109e707708297f5df254afa..555cd6c1c28ae49053b089bdd98b7ce725161a02 100644 (file)
@@ -1,4 +1,4 @@
-
+/* global tinymce */
 (function() {
        tinymce.create('tinymce.plugins.wpGallery', {
 
@@ -78,7 +78,7 @@
                        function getAttr(s, n) {
                                n = new RegExp(n + '=\"([^\"]+)\"', 'g').exec(s);
                                return n ? tinymce.DOM.decode(n[1]) : '';
-                       };
+                       }
 
                        return co.replace(/(?:<p[^>]*>)*(<img[^>]+>)(?:<\/p>)*/g, function(a,im) {
                                var cls = getAttr(im, 'class');
                                title : ed.getLang('wordpress.editgallery')
                        });
 
-                       tinymce.dom.Event.add(editButton, 'mousedown', function(e) {
+                       tinymce.dom.Event.add( editButton, 'mousedown', function() {
                                var ed = tinymce.activeEditor;
                                ed.wpGalleryBookmark = ed.selection.getBookmark('simple');
-                               ed.execCommand("WP_Gallery");
+                               ed.execCommand('WP_Gallery');
                                ed.plugins.wordpress._hideButtons();
                        });
 
                                author : 'WordPress',
                                authorurl : 'http://wordpress.org',
                                infourl : '',
-                               version : "1.0"
+                               version : '1.0'
                        };
                }
        });