Ticket #1227: fcktextcolorcommand.js.patch
File fcktextcolorcommand.js.patch, 1.2 KB (added by , 16 years ago) |
---|
-
editor/_source/commandclasses/fcktextcolorcommand.js
48 48 49 49 FCKTextColorCommand.prototype.Execute = function( panelX, panelY, relElement ) 50 50 { 51 // We must "cache" the actual panel type to be used in the SetColor method.52 FCK._ActiveColorPanelType = this.Type ;53 54 51 // Show the Color Panel at the desired position. 55 52 this._Panel.Show( panelX, panelY, relElement ) ; 56 53 } … … 58 55 FCKTextColorCommand.prototype.SetColor = function( color ) 59 56 { 60 57 var style = FCKStyles.GetStyle( '_FCK_' + 61 ( FCK._ActiveColorPanelType == 'ForeColor' ? 'Color' : 'BackColor' ) ) ;58 ( this.Type == 'ForeColor' ? 'Color' : 'BackColor' ) ) ; 62 59 63 60 if ( !color || color.length == 0 ) 64 61 FCK.Styles.RemoveStyle( style ) ; … … 67 64 style.SetVariable( 'Color', color ) ; 68 65 FCKStyles.ApplyStyle( style ) ; 69 66 } 70 71 // Delete the "cached" active panel type.72 delete FCK._ActiveColorPanelType ;73 67 } 74 68 75 69 FCKTextColorCommand.prototype.GetState = function()