fck_specialchar.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  2. <!--
  3. * FCKeditor - The text editor for Internet - http://www.fckeditor.net
  4. * Copyright (C) 2003-2010 Frederico Caldeira Knabben
  5. *
  6. * == BEGIN LICENSE ==
  7. *
  8. * Licensed under the terms of any of the following licenses at your
  9. * choice:
  10. *
  11. * - GNU General Public License Version 2 or later (the "GPL")
  12. * http://www.gnu.org/licenses/gpl.html
  13. *
  14. * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
  15. * http://www.gnu.org/licenses/lgpl.html
  16. *
  17. * - Mozilla Public License Version 1.1 or later (the "MPL")
  18. * http://www.mozilla.org/MPL/MPL-1.1.html
  19. *
  20. * == END LICENSE ==
  21. *
  22. * Special Chars Selector dialog window.
  23. -->
  24. <html>
  25. <head>
  26. <meta name="robots" content="noindex, nofollow">
  27. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  28. <style type="text/css">
  29. .Hand
  30. {
  31. cursor: pointer ;
  32. cursor: hand ;
  33. }
  34. .Sample { font-size: 24px; }
  35. </style>
  36. <script src="common/fck_dialog_common.js" type="text/javascript"></script>
  37. <script type="text/javascript">
  38. var oEditor = window.parent.InnerDialogLoaded() ;
  39. var oSample ;
  40. function insertChar(charValue)
  41. {
  42. oEditor.FCKUndo.SaveUndoStep() ;
  43. oEditor.FCK.InsertHtml( charValue || "" ) ;
  44. window.parent.Cancel() ;
  45. }
  46. function over(td)
  47. {
  48. if ( ! oSample )
  49. return ;
  50. oSample.innerHTML = td.innerHTML ;
  51. td.className = 'LightBackground SpecialCharsOver Hand' ;
  52. }
  53. function out(td)
  54. {
  55. if ( ! oSample )
  56. return ;
  57. oSample.innerHTML = "&nbsp;" ;
  58. td.className = 'DarkBackground SpecialCharsOut Hand' ;
  59. }
  60. function setDefaults()
  61. {
  62. // Gets the sample placeholder.
  63. oSample = document.getElementById("SampleTD") ;
  64. // First of all, translates the dialog box texts.
  65. oEditor.FCKLanguageManager.TranslatePage(document) ;
  66. window.parent.SetAutoSize( true ) ;
  67. }
  68. </script>
  69. <style type="text/css">
  70. body, td, input, textarea, select, label { font-family: Arial, Verdana, Geneva, helvetica, sans-serif; font-size: 13px; }
  71. </style>
  72. </head>
  73. <body onload="setDefaults()" style="overflow: hidden">
  74. <table cellpadding="0" cellspacing="0" width="100%" height="100%">
  75. <tr>
  76. <td width="100%">
  77. <table cellpadding="1" cellspacing="1" align="center" border="0" width="100%" height="100%">
  78. <script type="text/javascript">
  79. var aChars = ["!","&quot;","#","$","%","&amp;","\\'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&not;","&reg;","&macr;","&deg;","&plusmn;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&raquo;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"] ;
  80. var cols = 20 ;
  81. var i = 0 ;
  82. while (i < aChars.length)
  83. {
  84. document.write("<TR>") ;
  85. for(var j = 0 ; j < cols ; j++)
  86. {
  87. if (aChars[i])
  88. {
  89. document.write('<TD width="1%" class="DarkBackground SpecialCharsOut Hand" align="center" onclick="insertChar(\'' + aChars[i].replace(/&/g, "&amp;") + '\')" onmouseover="over(this)" onmouseout="out(this)">') ;
  90. document.write(aChars[i]) ;
  91. }
  92. else
  93. document.write("<TD class='DarkBackground SpecialCharsOut'>&nbsp;") ;
  94. document.write("<\/TD>") ;
  95. i++ ;
  96. }
  97. document.write("<\/TR>") ;
  98. }
  99. </script>
  100. </table>
  101. </td>
  102. <td nowrap>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  103. <td valign="top">
  104. <table width="40" cellpadding="0" cellspacing="0" border="0">
  105. <tr>
  106. <td id="SampleTD" width="40" height="40" align="center" class="DarkBackground SpecialCharsOut Sample">&nbsp;</td>
  107. </tr>
  108. </table>
  109. </td>
  110. </tr>
  111. </table>
  112. </body>
  113. </html>