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