]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/tinymce/themes/advanced/jscripts/charmap.js
Wordpress 2.3.2
[autoinstalls/wordpress.git] / wp-includes / js / tinymce / themes / advanced / jscripts / charmap.js
index 2f758cfa8d3a67f2f79f8fc75b3aad541e08589a..c4ec3261cf1a84c6d785fe99a30d33c219f4d6c6 100644 (file)
@@ -170,7 +170,7 @@ charmap = [
        ['ý',  'ý',  true, 'y - acute'],
        ['þ',   'þ',  true, 'thorn'],
        ['ÿ',    'ÿ',  true, 'y - diaeresis'],
-// ['Α',   'Α',  true, 'Alpha'],
+    ['Α',   'Α',  true, 'Alpha'],
        ['Β',    'Β',  true, 'Beta'],
        ['Γ',   'Γ',  true, 'Gamma'],
        ['Δ',   'Δ',  true, 'Delta'],
@@ -279,9 +279,9 @@ function renderCharMapHTML() {
                        cols++;
                        html += ''
                                + '<td width="' + tdWidth + '" height="' + tdHeight + '" class="charmap"'
-                               + ' onmouseover="tinyMCE.switchClass(this,\'charmapOver\');'
+                               + ' onmouseover="this.className=\'charmapOver\';'
                                + 'previewChar(\'' + charmap[i][1].substring(1,charmap[i][1].length) + '\',\'' + charmap[i][0].substring(1,charmap[i][0].length) + '\',\'' + charmap[i][3] + '\');"'
-                               + ' onmouseout="tinyMCE.restoreClass(this,\'charmapOver\');"'
+                               + ' onmouseout="this.className=\'charmap\';"'
                                + ' nowrap="nowrap" onclick="insertChar(\'' + charmap[i][1].substring(2,charmap[i][1].length-1) + '\');"><a style="text-decoration: none;" onfocus="previewChar(\'' + charmap[i][1].substring(1,charmap[i][1].length) + '\',\'' + charmap[i][0].substring(1,charmap[i][0].length) + '\',\'' + charmap[i][3] + '\');" href="javascript:insertChar(\'' + charmap[i][1].substring(2,charmap[i][1].length-1) + '\');" onclick="return false;" onmousedown="return false;" title="' + charmap[i][3] + '">'
                                + charmap[i][1]
                                + '</a></td>';
@@ -299,11 +299,13 @@ function renderCharMapHTML() {
 }
 
 function insertChar(chr) {
-       tinyMCEPopup.execCommand('mceInsertContent', false, '\&#' + chr + ';');
+       tinyMCEPopup.execCommand('mceInsertContent', false, '&#' + chr + ';');
 
        // Refocus in window
        if (tinyMCEPopup.isWindow)
                window.focus();
+
+       tinyMCEPopup.close();
 }
 
 function previewChar(codeA, codeB, codeN) {