Ticket #3781: 3781_2.patch

File 3781_2.patch, 1.7 KB (added by Artur Formella, 15 years ago)
  • _source/plugins/button/plugin.js

     
    9999                // Get the command name.
    100100                var command = this.command;
    101101
    102                 if ( command )
     102                if ( this.modes )
    103103                {
     104                        editor.on( 'mode', function()
     105                                {
     106                                        this.setState( this.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED );
     107                                }, this);
     108                }
     109                else if ( command )
     110                {
    104111                        // Get the command instance.
    105112                        command = editor.getCommand( command );
    106113
  • _source/plugins/colorbutton/plugin.js

     
    2727                                        label : title,
    2828                                        title : title,
    2929                                        className : 'cke_button_' + name.toLowerCase(),
     30                                        modes : { wysiwyg : 1 },
    3031
    3132                                        panel :
    3233                                        {
  • CHANGES.html

     
    4444        <p>
    4545                Fixed issues:</p>
    4646        <ul>
     47                <li><a href="http://dev.fckeditor.net/ticket/3781">#3781</a> : Colorbutton is now disabled in 'source' mode</li>
    4748                <li><a href="http://dev.fckeditor.net/ticket/3808">#3808</a> : Fixed UI Color Picker dialog size in example page.</li>
    4849                <li><a href="http://dev.fckeditor.net/ticket/3658">#3658</a> : Editor had horizontal scrollbar in IE6.</li>             
    4950                <li><a href="http://dev.fckeditor.net/ticket/3819">#3819</a> : The cursor was not visible
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy