3 <link rel="stylesheet" type="text/css" href="spellerStyle.css" />
4 <script type="text/javascript" src="controlWindow.js"></script>
5 <script type="text/javascript">
10 spellerObject = parent.opener.speller;
13 function ignore_word() {
15 spellerObject.ignoreWord();
19 function ignore_all() {
21 spellerObject.ignoreAll();
25 function replace_word() {
27 spellerObject.replaceWord();
31 function replace_all() {
33 spellerObject.replaceAll();
37 function end_spell() {
39 spellerObject.terminateSpell();
50 if( controlWindowObj ) {
51 controlWindowObj.setSuggestedText();
55 var FCKLang = window.parent.parent.FCKLang ; // by FredCK
57 function init_spell() {
58 // By FredCK (fckLang attributes have been added to the HTML source of this page)
59 window.parent.parent.OnSpellerControlsLoad( this ) ;
61 var controlForm = document.spellcheck;
63 // create a new controlWindow object
64 controlWindowObj = new controlWindow( controlForm );
66 // call the init_spell() function in the parent frameset
67 if( parent.frames.length ) {
68 parent.init_spell( controlWindowObj );
70 alert( 'This page was loaded outside of a frameset. It might not display properly' );
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">
80 <td colspan="3" class="normalLabel"><span fckLang="DlgSpellNotInDic">Not in dictionary:</span></td>
83 <td colspan="3"><input class="readonlyInput" type="text" name="misword" readonly /></td>
86 <td colspan="3" height="5"></td>
89 <td class="normalLabel"><span fckLang="DlgSpellChangeTo">Change to:</span></td>
93 <table border="0" cellpadding="0" cellspacing="0" border="0">
95 <td class="normalLabel">
96 <input class="textDefault" type="text" name="txtsugg" />
101 <select class="suggSlct" name="sugg" size="7" onChange="suggText();" onDblClick="replace_word();">
108 <td> </td>
110 <table border="0" cellpadding="0" cellspacing="0" border="0">
113 <input class="buttonDefault" type="button" fckLang="DlgSpellBtnIgnore" value="Ignore" onClick="ignore_word();">
115 <td> </td>
117 <input class="buttonDefault" type="button" fckLang="DlgSpellBtnIgnoreAll" value="Ignore All" onClick="ignore_all();">
121 <td colspan="3" height="5"></td>
125 <input class="buttonDefault" type="button" fckLang="DlgSpellBtnReplace" value="Replace" onClick="replace_word();">
127 <td> </td>
129 <input class="buttonDefault" type="button" fckLang="DlgSpellBtnReplaceAll" value="Replace All" onClick="replace_all();">
133 <td colspan="3" height="5"></td>
137 <input class="buttonDefault" type="button" name="btnUndo" fckLang="DlgSpellBtnUndo" value="Undo" onClick="undo();"
140 <td> </td>
143 <input class="buttonDefault" type="button" value="Close" onClick="end_spell();">