Ticket #1613: 1613.patch
File 1613.patch, 7.0 KB (added by , 16 years ago) |
---|
-
fckeditor.afp
62 62 63 63 HtmlValue = THIS.cValue && HTMLSPECIALCHARS() 64 64 65 html = [ <div>]65 html = [] 66 66 IF THIS.IsCompatible() 67 67 lcLink = THIS.BasePath+[editor/fckeditor.html?InstanceName=]+THIS.cInstanceName 68 68 … … 94 94 html = html + [<textarea name="]+THIS.cInstanceName +[" rows="4" cols="40" style="width: ]+WidthCSS+[ height: ]+HeightCSS+[">]+HtmlValue+[</textarea>] 95 95 ENDIF 96 96 97 html = html + [</div>]98 99 97 RETURN (html) 100 98 ENDFUNC 101 99 -
fckeditor.asp
131 131 132 132 End If 133 133 134 CreateHtml = "<div>" & html & "</div>"134 CreateHtml = html 135 135 136 136 End Function 137 137 -
fckeditor.cfc
122 122 </cfscript> 123 123 124 124 <cfscript> 125 result = result & "<div>" & chr(13) & chr(10);126 125 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);128 126 </cfscript> 129 127 <cfreturn result /> 130 128 </cffunction> … … 153 151 </cfscript> 154 152 155 153 <cfscript> 156 result = result & "<div>" & chr(13) & chr(10);157 154 result = result & "<input type=""hidden"" id=""#this.instanceName#"" name=""#this.instanceName#"" value=""#HTMLEditFormat(this.value)#"" style=""display:none"" />" & chr(13) & chr(10); 158 155 result = result & "<input type=""hidden"" id=""#this.instanceName#___Config"" value=""#GetConfigFieldString()#"" style=""display:none"" />" & chr(13) & chr(10); 159 156 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);161 157 </cfscript> 162 158 <cfreturn result /> 163 159 </cffunction> -
fckeditor.cfm
130 130 </cfscript> 131 131 132 132 <cfoutput> 133 <div>134 133 <input type="hidden" id="#attributes.instanceName#" name="#attributes.instanceName#" value="#HTMLEditFormat(attributes.value)#" style="display:none" /> 135 134 <input type="hidden" id="#attributes.instanceName#___Config" value="#sConfig#" style="display:none" /> 136 135 <iframe id="#attributes.instanceName#___Frame" src="#sURL#" width="#attributes.width#" height="#attributes.height#" frameborder="0" scrolling="no"></iframe> 137 </div>138 136 </cfoutput> 139 137 140 138 <cfelse> … … 153 151 154 152 <!--- Fixed Bug ##1075166. hk@lwd.de 20041206 ---> 155 153 <cfoutput> 156 <div>157 154 <textarea name="#attributes.instanceName#" rows="4" cols="40" style="WIDTH: #attributes.width#; HEIGHT: #attributes.height#">#HTMLEditFormat(attributes.value)#</textarea> 158 </div>159 155 </cfoutput> 160 156 161 157 </cfif> -
fckeditor.js
76 76 return '' ; 77 77 } 78 78 79 var sHtml = ' <div>' ;79 var sHtml = '' ; 80 80 81 81 if ( !this.CheckBrowser || this._IsCompatibleBrowser() ) 82 82 { … … 91 91 sHtml += '<textarea name="' + this.InstanceName + '" rows="4" cols="40" style="width:' + sWidth + ';height:' + sHeight + '">' + this._HTMLEncode( this.Value ) + '<\/textarea>' ; 92 92 } 93 93 94 sHtml += '</div>' ;95 96 94 return sHtml ; 97 95 } 98 96 -
fckeditor.lasso
64 64 define_tag('create'); 65 65 if(self->isCompatibleBrowser); 66 66 local('out' = ' 67 <div>68 67 <input type="hidden" id="' + self->instancename + '" name="' + self->instancename + '" value="' + encode_html(self->initialvalue) + '" style="display:none" /> 69 68 ' + self->parseConfig + ' 70 69 <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>72 70 '); 73 71 else; 74 72 local('out' = ' 75 <div>76 73 <textarea name="' + self->instancename + '" rows="4" cols="40" style="width: ' + self->width + '; height: ' + self->height + '">' + encode_html(self->initialvalue) + '</textarea> 77 </div>78 74 '); 79 75 /if; 80 76 return(@#out); -
fckeditor.pl
63 63 { 64 64 65 65 $HtmlValue = &specialchar_cnv($Value); 66 $Html = ' <div>' ;66 $Html = '' ; 67 67 if(&IsCompatible()) { 68 68 $Link = $BasePath . "editor/fckeditor.html?InstanceName=$InstanceName"; 69 69 if($ToolbarSet ne '') { … … 93 93 } 94 94 $Html .= "<textarea name=\"$InstanceName\" rows=\"4\" cols=\"40\" style=\"width: $WidthCSS; height: $HeightCSS\">$HtmlValue</textarea>"; 95 95 } 96 $Html .= '</div>';97 96 return($Html); 98 97 } 99 98 -
fckeditor.py
57 57 58 58 def CreateHtml(self): 59 59 HtmlValue = escape(self.Value) 60 Html = " <div>"60 Html = "" 61 61 62 62 if (self.IsCompatible()): 63 63 File = "fckeditor.html" … … 105 105 HeightCSS, 106 106 HtmlValue 107 107 ) 108 Html += "</div>"109 108 return Html 110 109 111 110 def IsCompatible(self): -
fckeditor_php4.php
57 57 { 58 58 $HtmlValue = htmlspecialchars( $this->Value ) ; 59 59 60 $Html = ' <div>' ;60 $Html = '' ; 61 61 62 62 if ( !isset( $_GET ) ) { 63 63 global $HTTP_GET_VARS ; … … 100 100 $Html .= "<textarea name=\"{$this->InstanceName}\" rows=\"4\" cols=\"40\" style=\"width: {$WidthCSS}; height: {$HeightCSS}\">{$HtmlValue}</textarea>" ; 101 101 } 102 102 103 $Html .= '</div>' ;104 105 103 return $Html ; 106 104 } 107 105 -
fckeditor_php5.php
57 57 { 58 58 $HtmlValue = htmlspecialchars( $this->Value ) ; 59 59 60 $Html = ' <div>' ;60 $Html = '' ; 61 61 62 62 if ( $this->IsCompatible() ) 63 63 { … … 95 95 $Html .= "<textarea name=\"{$this->InstanceName}\" rows=\"4\" cols=\"40\" style=\"width: {$WidthCSS}; height: {$HeightCSS}\">{$HtmlValue}</textarea>" ; 96 96 } 97 97 98 $Html .= '</div>' ;99 100 98 return $Html ; 101 99 } 102 100