Ticket #4498: 4498.patch

File 4498.patch, 2.2 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/toolbar/plugin.js

     
    113113                                                editor.toolbox = new toolbox();
    114114
    115115                                                var output = [ '<div class="cke_toolbox"' ],
    116                                                         expanded =  editor.config.toolbarStartupExpanded,
     116                                                        expanded =  editor.config.toolbarStartupExpanded !== false,
    117117                                                        groupStarted;
    118118
    119119                                                output.push( expanded ? '>' : ' style="display:none">' );
     
    252252                                                                                {
    253253                                                                                        toolbox.hide();
    254254                                                                                        collapser.addClass( 'cke_toolbox_collapser_min' );
     255                                                                                        collapser.setAttribute( 'title', editor.lang.toolbarExpand );
    255256                                                                                }
    256257                                                                                else
    257258                                                                                {
    258259                                                                                        toolbox.show();
    259260                                                                                        collapser.removeClass( 'cke_toolbox_collapser_min' );
     261                                                                                        collapser.setAttribute( 'title', editor.lang.toolbarCollapse );
    260262                                                                                }
    261263
    262264                                                                                var dy = toolboxContainer.$.offsetHeight - previousHeight;
     
    266268                                                                        modes : { wysiwyg : 1, source : 1 }
    267269                                                                } );
    268270
    269                                                         output.push( '<a id="' + collapserId + '" class="cke_toolbox_collapser' );
     271                                                        output.push( '<a title="' + ( expanded ? editor.lang.toolbarCollapse : editor.lang.toolbarExpand )
     272                                                                                                          + '" id="' + collapserId + '" class="cke_toolbox_collapser' );
    270273
    271274                                                        if ( !expanded )
    272275                                                                output.push( ' cke_toolbox_collapser_min' );
     
    404407
    405408/**
    406409 * Whether the toolbar must start expanded when the editor is loaded.
     410 * @name CKEDITOR.config.toolbarStartupExpanded
    407411 * @type Boolean
    408412 * @default true
    409413 * @example
    410414 * config.toolbarStartupExpanded = false;
    411415 */
    412 CKEDITOR.config.toolbarStartupExpanded = true;
     416
  • _source/lang/en.js

     
    681681                highlight : 'Highlight',
    682682                selected : 'Selected',
    683683                clear : 'Clear'
    684         }
     684        },
     685
     686        toolbarCollapse : 'Collapse Toolbar',
     687        toolbarExpand : 'Expand Toolbar'
    685688};
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy