]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/tinymce/plugins/charmap/plugin.js
WordPress 4.3.1
[autoinstalls/wordpress.git] / wp-includes / js / tinymce / plugins / charmap / plugin.js
index 19f186583a62011e120345b3c63e12e5cce617ed..91181b9f30bb2a22309414ae5f4b603a30437946 100644 (file)
@@ -1,8 +1,8 @@
 /**
  * plugin.js
  *
- * Copyright, Moxiecode Systems AB
  * Released under LGPL License.
+ * Copyright (c) 1999-2015 Ephox Corp. All rights reserved
  *
  * License: http://www.tinymce.com/license
  * Contributing: http://www.tinymce.com/contributing
@@ -381,16 +381,18 @@ tinymce.PluginManager.add('charmap', function(editor) {
                });
        }
 
+       editor.addCommand('mceShowCharmap', showDialog);
+
        editor.addButton('charmap', {
                icon: 'charmap',
                tooltip: 'Special character',
-               onclick: showDialog
+               cmd: 'mceShowCharmap'
        });
 
        editor.addMenuItem('charmap', {
                icon: 'charmap',
                text: 'Special character',
-               onclick: showDialog,
+               cmd: 'mceShowCharmap',
                context: 'insert'
        });
 });
\ No newline at end of file