Ticket #1613: 1613.patch

File 1613.patch, 7.0 KB (added by Alfonso Martínez de Lizarrondo, 16 years ago)

Proposed SVN patch

  • fckeditor.afp

     
    6262
    6363                HtmlValue = THIS.cValue         && HTMLSPECIALCHARS()
    6464
    65                 html = [<div>]
     65                html = []
    6666                IF THIS.IsCompatible()
    6767                        lcLink = THIS.BasePath+[editor/fckeditor.html?InstanceName=]+THIS.cInstanceName
    6868
     
    9494                        html = html + [<textarea name="]+THIS.cInstanceName +[" rows="4" cols="40" style="width: ]+WidthCSS+[ height: ]+HeightCSS+[">]+HtmlValue+[</textarea>]
    9595                ENDIF
    9696
    97                 html = html + [</div>]
    98 
    9997                RETURN (html)
    10098        ENDFUNC
    10199
  • fckeditor.asp

     
    131131
    132132                End If
    133133
    134                 CreateHtml = "<div>" & html & "</div>"
     134                CreateHtml = html
    135135
    136136        End Function
    137137
  • fckeditor.cfc

     
    122122        </cfscript>
    123123
    124124        <cfscript>
    125         result = result & "<div>" & chr(13) & chr(10);
    126125        result = result & "<textarea name=""#this.instanceName#"" rows=""4"" cols=""40"" style=""WIDTH: #this.width#; HEIGHT: #this.height#"">#HTMLEditFormat(this.value)#</textarea>" & chr(13) & chr(10);
    127         result = result & "</div>" & chr(13) & chr(10);
    128126        </cfscript>
    129127        <cfreturn result />
    130128</cffunction>
     
    153151        </cfscript>
    154152
    155153        <cfscript>
    156         result = result & "<div>" & chr(13) & chr(10);
    157154        result = result & "<input type=""hidden"" id=""#this.instanceName#"" name=""#this.instanceName#"" value=""#HTMLEditFormat(this.value)#"" style=""display:none"" />" & chr(13) & chr(10);
    158155        result = result & "<input type=""hidden"" id=""#this.instanceName#___Config"" value=""#GetConfigFieldString()#"" style=""display:none"" />" & chr(13) & chr(10);
    159156        result = result & "<iframe id=""#this.instanceName#___Frame"" src=""#sURL#"" width=""#this.width#"" height=""#this.height#"" frameborder=""0"" scrolling=""no""></iframe>" & chr(13) & chr(10);
    160         result = result & "</div>" & chr(13) & chr(10);
    161157        </cfscript>
    162158        <cfreturn result />
    163159</cffunction>
  • fckeditor.cfm

     
    130130        </cfscript>
    131131
    132132        <cfoutput>
    133         <div>
    134133        <input type="hidden" id="#attributes.instanceName#" name="#attributes.instanceName#" value="#HTMLEditFormat(attributes.value)#" style="display:none" />
    135134        <input type="hidden" id="#attributes.instanceName#___Config" value="#sConfig#" style="display:none" />
    136135        <iframe id="#attributes.instanceName#___Frame" src="#sURL#" width="#attributes.width#" height="#attributes.height#" frameborder="0" scrolling="no"></iframe>
    137         </div>
    138136        </cfoutput>
    139137
    140138<cfelse>
     
    153151
    154152        <!--- Fixed Bug ##1075166. hk@lwd.de 20041206 --->
    155153        <cfoutput>
    156         <div>
    157154        <textarea name="#attributes.instanceName#" rows="4" cols="40" style="WIDTH: #attributes.width#; HEIGHT: #attributes.height#">#HTMLEditFormat(attributes.value)#</textarea>
    158         </div>
    159155        </cfoutput>
    160156
    161157</cfif>
  • fckeditor.js

     
    7676                return '' ;
    7777        }
    7878
    79         var sHtml = '<div>' ;
     79        var sHtml = '' ;
    8080
    8181        if ( !this.CheckBrowser || this._IsCompatibleBrowser() )
    8282        {
     
    9191                sHtml += '<textarea name="' + this.InstanceName + '" rows="4" cols="40" style="width:' + sWidth + ';height:' + sHeight + '">' + this._HTMLEncode( this.Value ) + '<\/textarea>' ;
    9292        }
    9393
    94         sHtml += '</div>' ;
    95 
    9694        return sHtml ;
    9795}
    9896
  • fckeditor.lasso

     
    6464                define_tag('create');
    6565                        if(self->isCompatibleBrowser);
    6666                                local('out' = '
    67                                         <div>
    6867                                                <input type="hidden" id="' + self->instancename + '" name="' + self->instancename + '" value="' + encode_html(self->initialvalue) + '" style="display:none" />
    6968                                                ' + self->parseConfig + '
    7069                                                <iframe id="' + self->instancename + '___Frame" src="' + self->basepath + 'editor/fckeditor.html?InstanceName=' + self->instancename + '&Toolbar=' + self->toolbarset + '" width="' + self->width + '" height="' + self->height + '" frameborder="0" scrolling="no"></iframe>
    71                                         </div>
    7270                                ');
    7371                        else;
    7472                                local('out' = '
    75                                         <div>
    7673                                                <textarea name="' + self->instancename + '" rows="4" cols="40" style="width: ' + self->width + '; height: ' + self->height + '">' + encode_html(self->initialvalue) + '</textarea>
    77                                         </div>
    7874                                ');
    7975                        /if;
    8076                        return(@#out);
  • fckeditor.pl

     
    6363{
    6464
    6565        $HtmlValue = &specialchar_cnv($Value);
    66         $Html = '<div>' ;
     66        $Html = '' ;
    6767        if(&IsCompatible()) {
    6868                $Link = $BasePath . "editor/fckeditor.html?InstanceName=$InstanceName";
    6969                if($ToolbarSet ne '') {
     
    9393                }
    9494                $Html .= "<textarea name=\"$InstanceName\" rows=\"4\" cols=\"40\" style=\"width: $WidthCSS; height: $HeightCSS\">$HtmlValue</textarea>";
    9595        }
    96         $Html .= '</div>';
    9796        return($Html);
    9897}
    9998
  • fckeditor.py

     
    5757
    5858        def CreateHtml(self):
    5959                HtmlValue = escape(self.Value)
    60                 Html = "<div>"
     60                Html = ""
    6161
    6262                if (self.IsCompatible()):
    6363                        File = "fckeditor.html"
     
    105105                                        HeightCSS,
    106106                                        HtmlValue
    107107                                        )
    108                 Html += "</div>"
    109108                return Html
    110109
    111110        def IsCompatible(self):
  • fckeditor_php4.php

     
    5757        {
    5858                $HtmlValue = htmlspecialchars( $this->Value ) ;
    5959
    60                 $Html = '<div>' ;
     60                $Html = '' ;
    6161               
    6262                if ( !isset( $_GET ) ) {
    6363                        global $HTTP_GET_VARS ;
     
    100100                        $Html .= "<textarea name=\"{$this->InstanceName}\" rows=\"4\" cols=\"40\" style=\"width: {$WidthCSS}; height: {$HeightCSS}\">{$HtmlValue}</textarea>" ;
    101101                }
    102102
    103                 $Html .= '</div>' ;
    104 
    105103                return $Html ;
    106104        }
    107105
  • fckeditor_php5.php

     
    5757        {
    5858                $HtmlValue = htmlspecialchars( $this->Value ) ;
    5959
    60                 $Html = '<div>' ;
     60                $Html = '' ;
    6161
    6262                if ( $this->IsCompatible() )
    6363                {
     
    9595                        $Html .= "<textarea name=\"{$this->InstanceName}\" rows=\"4\" cols=\"40\" style=\"width: {$WidthCSS}; height: {$HeightCSS}\">{$HtmlValue}</textarea>" ;
    9696                }
    9797
    98                 $Html .= '</div>' ;
    99 
    10098                return $Html ;
    10199        }
    102100
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy