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