Changeset 490
- Timestamp:
- 2007-07-20 14:38:40 (3 years ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 2 modified
-
editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm (modified) (4 diffs)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm
r270 r490 66 66 <!--- cfsavecontent is used to set the variable that will be returned with the results from aspell. 67 67 If your using the new version of mx 6.1 you can use the following cfexecute tag instead: 68 <cfexecute name="C:\WINDOWS\SYSTEM32\cmd.exe" arguments="/c type c:\test\#tempfile#.txt | c:\aspell\bin\aspell #aspell_opts#" timeout="100" variable="results"></cfexecute> ---> 69 70 68 <cfexecute name="C:\WINDOWS\SYSTEM32\cmd.exe" arguments="/c type c:\test\#tempfile#.txt | c:\aspell\bin\aspell #aspell_opts#" timeout="100" variable="results"></cfexecute> 69 ---> 71 70 72 71 <cfsavecontent variable="food"> … … 74 73 </cfsavecontent> 75 74 76 75 <!--- For debugging purposes, create a file with the Aspell output 76 <cffile action="write" file="#tempFolder#\#tempfile#_food.txt" output="#food#" charset="utf-8"> 77 ---> 77 78 78 79 <!--- remove temp file ---> … … 104 105 <cfset bad_word = listGetAt(list, "2", " ")> 105 106 <!--- sugestions ---> 106 <cfset wrdList = mid(list,(LastIndexOf(':', list) + 2),(len(list) - (LastIndexOf(':', list) + 2)))>107 107 <cfset wrdsList = ""> 108 <cfloop list="#wrdList#" index="idx"> 109 <cfset wrdsList = ListAppend(wrdsList, " '" & trim(replace(idx,"'","\'","All")) & "'", ", ")> 110 </cfloop> 111 <cfset wrdsList = Right(wrdsList, Len(wrdsList) - 1)> 108 <cfif Find(':', list)> 109 <cfset wrdList = mid(list,(LastIndexOf(':', list) + 2),(len(list) - (LastIndexOf(':', list) + 2)))> 110 <cfloop list="#wrdList#" index="idx"> 111 <cfset wrdsList = ListAppend(wrdsList, " '" & trim(replace(idx,"'","\'","All")) & "'", ", ")> 112 </cfloop> 113 <cfset wrdsList = Right(wrdsList, Len(wrdsList) - 1)> 114 </cfif> 112 115 <!--- javascript ---> 113 116 <cfset texts.words = ListAppend(texts.words, "words[#input_cnt#][#word_cnt#] = '#trim(replace(bad_word,"'","\'","All"))#';", "#Chr(13)##Chr(10)#")> … … 115 118 <cfset word_cnt = word_cnt + 1> 116 119 <cfelseif find("*", list)> 117 <cfset input_cnt = input_cnt + "1">118 <cfset word_cnt = "0">119 <cfset texts.words = ListAppend(texts.words, "words[#input_cnt#] = [];", "#crlf#")>120 <cfset texts.words = ListAppend(texts.words, "suggs[#input_cnt#] = [];", "#crlf#")>120 <cfset input_cnt = input_cnt + "1"> 121 <cfset word_cnt = "0"> 122 <cfset texts.words = ListAppend(texts.words, "words[#input_cnt#] = [];", "#crlf#")> 123 <cfset texts.words = ListAppend(texts.words, "suggs[#input_cnt#] = [];", "#crlf#")> 121 124 </cfif> 122 125 </cfif> -
FCKeditor/trunk/_whatsnew.html
r489 r490 132 132 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/174">#174</a>] Fixed incorrect positioning of FCKeditor 133 133 in full screen mode. </li> 134 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/978">#978</a>] Fixed a 135 SpellerPages error with ColdFusion when no suggestions where available for a word.</li> 134 136 </ul> 135 137 <h3>