Ticket #2215: 2215.4.patch
File 2215.4.patch, 2.8 KB (added by , 16 years ago) |
---|
-
_whatsnew.html
42 42 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2150">#2150</a>] The searching 43 43 speed of the Find/Replace dialog has been vastly improved.</li> 44 44 <li>New language file for <strong>Gujarati</strong> (by Nilam Doctor).</li> 45 <li>A new TabIndex property has been added to the JavaScript integration files.</li> 46 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2215">#2215</a>] Following 47 the above new feature, the ReplaceTextarea method will now copy the textarea.tabIndex 48 value if available.</li> 45 49 46 50 47 51 </ul> -
fckeditor.js
88 88 { 89 89 var sWidth = this.Width.toString().indexOf('%') > 0 ? this.Width : this.Width + 'px' ; 90 90 var sHeight = this.Height.toString().indexOf('%') > 0 ? this.Height : this.Height + 'px' ; 91 sHtml += '<textarea name="' + this.InstanceName + '" rows="4" cols="40" style="width:' + sWidth + ';height:' + sHeight + '">' + this._HTMLEncode( this.Value ) + '<\/textarea>' ; 91 92 sHtml += '<textarea name="' + this.InstanceName + 93 '" rows="4" cols="40" style="width:' + sWidth + 94 ';height:' + sHeight ; 95 96 if ( this.TabIndex ) 97 sHtml += '" tabindex="' + this.TabIndex ; 98 99 sHtml += '">' + 100 this._HTMLEncode( this.Value ) + 101 '<\/textarea>' ; 92 102 } 93 103 94 104 return sHtml ; … … 116 126 } 117 127 118 128 oTextarea.style.display = 'none' ; 129 130 if ( oTextarea.tabIndex ) 131 this.TabIndex = oTextarea.tabIndex ; 132 119 133 this._InsertHtmlBefore( this._GetConfigHtml(), oTextarea ) ; 120 134 this._InsertHtmlBefore( this._GetIFrameHtml(), oTextarea ) ; 121 135 } … … 158 172 catch (e) { /* Ignore it. Much probably we are inside a FRAME where the "top" is in another domain (security error). */ } 159 173 160 174 var sLink = this.BasePath + 'editor/' + sFile + '?InstanceName=' + encodeURIComponent( this.InstanceName ) ; 161 if (this.ToolbarSet) sLink += '&Toolbar=' + this.ToolbarSet ; 175 if (this.ToolbarSet) 176 sLink += '&Toolbar=' + this.ToolbarSet ; 162 177 163 return '<iframe id="' + this.InstanceName + '___Frame" src="' + sLink + '" width="' + this.Width + '" height="' + this.Height + '" frameborder="0" scrolling="no"></iframe>' ; 178 html = '<iframe id="' + this.InstanceName + 179 '___Frame" src="' + sLink + 180 '" width="' + this.Width + 181 '" height="' + this.Height ; 182 183 if ( this.TabIndex ) 184 html += '" tabindex="' + this.TabIndex ; 185 186 html += '" frameborder="0" scrolling="no"></iframe>' ; 187 188 return html ; 164 189 } 165 190 166 191 FCKeditor.prototype._IsCompatibleBrowser = function()