]> 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 8d699ba4612935567a14c1ea27d90aa80aa4c2ca..91181b9f30bb2a22309414ae5f4b603a30437946 100644 (file)
@@ -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