Changeset 1189


Ignore:
Timestamp:
12/11/2007 04:18:54 AM (8 years ago)
Author:
wwalc
Message:

Fix for #681 (SpellerPages ignored text after links)

Location:
FCKeditor/trunk/editor/dialog/fck_spellerpages/spellerpages/server-scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm

    r662 r1189  
    3838                      & "^A" & CRLF
    3939                      & "!"  & CRLF>
    40         <cfloop list="#URLDecode(field)#" index="line" delimiters="#CRLF#">
     40        <!--- Strip all tags for the text. (by FredCK - #339 / #681) --->
     41        <cfset field = REReplace(URLDecode(field), "<[^>]+>", " ", "all")>
     42        <cfloop list="#field#" index="line" delimiters="#CRLF#">
    4143                <cfset text = ListAppend(text, "^" & Trim(JSStringFormat(line)), CRLF)>
    4244        </cfloop>
  • FCKeditor/trunk/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php

    r1187 r1189  
    8383                for( $i = 0; $i < count( $textinputs ); $i++ ) {
    8484                        $text = urldecode( $textinputs[$i] );
     85
     86                        // Strip all tags for the text. (by FredCK - #339 / #681)
     87                        $text = preg_replace( "/<[^>]+>/", " ", $text ) ;
     88
    8589                        $lines = explode( "\n", $text );
    8690                        fwrite ( $fh, "%\n" ); # exit terse mode
     
    195199</html>
    196200
     201
  • FCKeditor/trunk/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl

    r270 r1189  
    5959        for( my $i = 0; $i <= $#textinputs; $i++ ) {
    6060                $text = url_decode( $textinputs[$i] );
     61                # Strip all tags for the text. (by FredCK - #339 / #681)
     62                $text =~ s/<[^>]+>/ /g;
    6163                @lines = split( /\n/, $text );
    6264                print $fh "\%\n"; # exit terse mode
     
    179181EOF
    180182
     183
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy