Ticket #2042: 2042.patch
File 2042.patch, 1.5 KB (added by , 16 years ago) |
---|
-
_whatsnew.html
115 115 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1792">#1792</a>] In IE, 116 116 the browser was able to enter in an infinite loop when working with multiple editors 117 117 in the same page. </li> 118 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2042">#2042</a>] The FitWindow 119 command was throwing an error if executed in an editor where its relative button 120 is not present in the toolbar.</li> 118 121 </ul> 119 122 <h3> 120 123 Version 2.6 Beta 1</h3> -
editor/_source/classes/fcktoolbarbutton.js
48 48 49 49 FCKToolbarButton.prototype.RefreshState = function() 50 50 { 51 var uiButton = this._UIButton ; 52 53 if ( !uiButton ) 54 return ; 55 51 56 // Gets the actual state. 52 57 var eState = FCK.ToolbarSet.CurrentInstance.Commands.GetCommand( this.CommandName ).GetState() ; 53 58 54 59 // If there are no state changes than do nothing and return. 55 if ( eState == this._UIButton.State ) return ;60 if ( eState == uiButton.State ) return ; 56 61 57 62 // Sets the actual state. 58 this._UIButton.ChangeState( eState ) ;63 uiButton.ChangeState( eState ) ; 59 64 } 60 65 61 66 FCKToolbarButton.prototype.Click = function()