/EQT_V1/EQTWebApp/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controls.html

http://sgsoft-las.googlecode.com/ · HTML · 153 lines · 136 code · 14 blank · 3 comment · 0 complexity · 9000c36f08b7e9d41fd5b002273cfb5a MD5 · raw file

  1. <html>
  2. <head>
  3. <link rel="stylesheet" type="text/css" href="spellerStyle.css" />
  4. <script type="text/javascript" src="controlWindow.js"></script>
  5. <script type="text/javascript">
  6. var spellerObject;
  7. var controlWindowObj;
  8. if( parent.opener ) {
  9. spellerObject = parent.opener.speller;
  10. }
  11. function ignore_word() {
  12. if( spellerObject ) {
  13. spellerObject.ignoreWord();
  14. }
  15. }
  16. function ignore_all() {
  17. if( spellerObject ) {
  18. spellerObject.ignoreAll();
  19. }
  20. }
  21. function replace_word() {
  22. if( spellerObject ) {
  23. spellerObject.replaceWord();
  24. }
  25. }
  26. function replace_all() {
  27. if( spellerObject ) {
  28. spellerObject.replaceAll();
  29. }
  30. }
  31. function end_spell() {
  32. if( spellerObject ) {
  33. spellerObject.terminateSpell();
  34. }
  35. }
  36. function undo() {
  37. if( spellerObject ) {
  38. spellerObject.undo();
  39. }
  40. }
  41. function suggText() {
  42. if( controlWindowObj ) {
  43. controlWindowObj.setSuggestedText();
  44. }
  45. }
  46. var FCKLang = window.parent.parent.FCKLang ; // by FredCK
  47. function init_spell() {
  48. // By FredCK (fckLang attributes have been added to the HTML source of this page)
  49. window.parent.parent.OnSpellerControlsLoad( this ) ;
  50. var controlForm = document.spellcheck;
  51. // create a new controlWindow object
  52. controlWindowObj = new controlWindow( controlForm );
  53. // call the init_spell() function in the parent frameset
  54. if( parent.frames.length ) {
  55. parent.init_spell( controlWindowObj );
  56. } else {
  57. alert( 'This page was loaded outside of a frameset. It might not display properly' );
  58. }
  59. }
  60. </script>
  61. </head>
  62. <body class="controlWindowBody" onLoad="init_spell();" style="OVERFLOW: hidden" scroll="no"> <!-- by FredCK -->
  63. <form name="spellcheck">
  64. <table border="0" cellpadding="0" cellspacing="0" border="0" align="center">
  65. <tr>
  66. <td colspan="3" class="normalLabel"><span fckLang="DlgSpellNotInDic">Not in dictionary:</span></td>
  67. </tr>
  68. <tr>
  69. <td colspan="3"><input class="readonlyInput" type="text" name="misword" readonly /></td>
  70. </tr>
  71. <tr>
  72. <td colspan="3" height="5"></td>
  73. </tr>
  74. <tr>
  75. <td class="normalLabel"><span fckLang="DlgSpellChangeTo">Change to:</span></td>
  76. </tr>
  77. <tr valign="top">
  78. <td>
  79. <table border="0" cellpadding="0" cellspacing="0" border="0">
  80. <tr>
  81. <td class="normalLabel">
  82. <input class="textDefault" type="text" name="txtsugg" />
  83. </td>
  84. </tr>
  85. <tr>
  86. <td>
  87. <select class="suggSlct" name="sugg" size="7" onChange="suggText();" onDblClick="replace_word();">
  88. <option></option>
  89. </select>
  90. </td>
  91. </tr>
  92. </table>
  93. </td>
  94. <td>&nbsp;&nbsp;</td>
  95. <td>
  96. <table border="0" cellpadding="0" cellspacing="0" border="0">
  97. <tr>
  98. <td>
  99. <input class="buttonDefault" type="button" fckLang="DlgSpellBtnIgnore" value="Ignore" onClick="ignore_word();">
  100. </td>
  101. <td>&nbsp;&nbsp;</td>
  102. <td>
  103. <input class="buttonDefault" type="button" fckLang="DlgSpellBtnIgnoreAll" value="Ignore All" onClick="ignore_all();">
  104. </td>
  105. </tr>
  106. <tr>
  107. <td colspan="3" height="5"></td>
  108. </tr>
  109. <tr>
  110. <td>
  111. <input class="buttonDefault" type="button" fckLang="DlgSpellBtnReplace" value="Replace" onClick="replace_word();">
  112. </td>
  113. <td>&nbsp;&nbsp;</td>
  114. <td>
  115. <input class="buttonDefault" type="button" fckLang="DlgSpellBtnReplaceAll" value="Replace All" onClick="replace_all();">
  116. </td>
  117. </tr>
  118. <tr>
  119. <td colspan="3" height="5"></td>
  120. </tr>
  121. <tr>
  122. <td>
  123. <input class="buttonDefault" type="button" name="btnUndo" fckLang="DlgSpellBtnUndo" value="Undo" onClick="undo();"
  124. disabled>
  125. </td>
  126. <td>&nbsp;&nbsp;</td>
  127. <td>
  128. <!-- by FredCK
  129. <input class="buttonDefault" type="button" value="Close" onClick="end_spell();">
  130. -->
  131. </td>
  132. </tr>
  133. </table>
  134. </td>
  135. </tr>
  136. </table>
  137. </form>
  138. </body>
  139. </html>