Changeset 490


Ignore:
Timestamp:
07/20/2007 02:38:40 PM (7 years ago)
Author:
fredck
Message:

Fixed #978 : A SpellerPages error with ColdFusion when no suggestions where available for a word.

Location:
FCKeditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/_whatsnew.html

    r489 r490  
    132132                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/174">#174</a>] Fixed incorrect positioning of FCKeditor 
    133133                        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> 
    134136        </ul> 
    135137        <h3> 
  • FCKeditor/trunk/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm

    r270 r490  
    6666<!--- cfsavecontent is used to set the variable that will be returned with the results from aspell. 
    6767If 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---> 
    7170 
    7271<cfsavecontent variable="food"> 
     
    7473</cfsavecontent> 
    7574 
    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---> 
    7778 
    7879<!--- remove temp file ---> 
     
    104105                        <cfset bad_word = listGetAt(list, "2", " ")> 
    105106                        <!--- sugestions ---> 
    106                         <cfset wrdList = mid(list,(LastIndexOf(':', list) + 2),(len(list) - (LastIndexOf(':', list) + 2)))> 
    107107                        <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> 
    112115                        <!--- javascript ---> 
    113116                        <cfset texts.words = ListAppend(texts.words, "words[#input_cnt#][#word_cnt#] = '#trim(replace(bad_word,"'","\'","All"))#';", "#Chr(13)##Chr(10)#")> 
     
    115118                        <cfset word_cnt = word_cnt + 1> 
    116119                <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#")> 
    121124                </cfif> 
    122125        </cfif> 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy