]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/tinymce/plugins/wplink/editor_plugin_src.js
WordPress 3.7-scripts
[autoinstalls/wordpress.git] / wp-includes / js / tinymce / plugins / wplink / editor_plugin_src.js
index ff1c4ebc29b3da2e3c65f52cfd20ca4fd596ee47..f36e86369b1c86d89bda9337bf87884a48653704 100644 (file)
@@ -2,7 +2,7 @@
        tinymce.create('tinymce.plugins.wpLink', {
                /**
                 * Initializes the plugin, this will be executed after the plugin has been created.
-                * This call is done before the editor instance has finished it's initialization so use the onInit event
+                * This call is done before the editor instance has finished its initialization so use the onInit event
                 * of the editor instance to intercept that event.
                 *
                 * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
 
                        // Register example button
                        ed.addButton('link', {
-                               title : ed.getLang('advanced.link_desc'),
+                               title : 'advanced.link_desc',
                                cmd : 'WP_Link'
                        });
 
-                       ed.addShortcut('alt+shift+a', ed.getLang('advanced.link_desc'), 'WP_Link');
-
                        ed.onNodeChange.add(function(ed, cm, n, co) {
                                disabled = co && n.nodeName != 'A';
                        });
@@ -57,4 +55,5 @@
 
        // Register plugin
        tinymce.PluginManager.add('wplink', tinymce.plugins.wpLink);
-})();
\ No newline at end of file
+})();
+