Ticket #1712: 1712.patch

File 1712.patch, 769 bytes (added by Artur Formella, 11 years ago)
  • fckplugin.js

     
    2020                       
    2121                        FCKUndo.SaveUndoStep() ;
    2222                        FCK.Events.FireEvent( 'OnSelectionChange' ) ;
    23                         this.SetLabel( style.Label ) ; // try to set the selected label, but I get [object Object]
     23                        StyleComboObj._Combo.SetLabel( style.Label ) ;                  /*      Set Label       */
    2424         }
    2525
    2626         //if ( style.IsActive )
     
    9292         }
    9393}
    9494
    95 FCKToolbarItems.RegisterItem( 'StyleCombo', new FCKToolbarStylesCombo( 'StyleCombo', FCK_TOOLBARITEM_ICONTEXT ) ) ;
     95var StyleComboObj=new FCKToolbarStylesCombo( 'StyleCombo', FCK_TOOLBARITEM_ICONTEXT );
     96
     97FCKToolbarItems.RegisterItem( 'StyleCombo', StyleComboObj ) ;
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy