X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/61343b82c4f0da4c68e4c6373daafff4a81efdd1..e08b42e8ad054ec67522d7ac1aaae5dc68cb3d01:/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin_src.js diff --git a/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin_src.js b/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin_src.js index 986304dc..555cd6c1 100644 --- a/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin_src.js +++ b/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin_src.js @@ -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>)*/g, function(a,im) { var cls = getAttr(im, 'class'); @@ -112,10 +112,10 @@ 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(); }); @@ -147,7 +147,7 @@ author : 'WordPress', authorurl : 'http://wordpress.org', infourl : '', - version : "1.0" + version : '1.0' }; } });