2010-04-22 5 views

Répondre

0

Vous (I) peut utiliser une configuration comme ceci:

var myConfig = { 
    height: '300px', 
    width: '522px', 
    toolbar: { 
     collapse: false, 
     titlebar: '', 
     draggable: false, 
     buttons: [ 
      { group: 'textstyle', label: 'Font Style', 
       buttons: [ 
        { type: 'push', label: 'Bold CTRL + SHIFT + B', value: 'bold' }, 
        { type: 'push', label: 'Italic CTRL + SHIFT + I', value: 'italic' }, 
        { type: 'push', label: 'Underline CTRL + SHIFT + U', value: 'underline' }, 
        { type: 'separator' }, 
        { type: 'color', label: 'Font Color', value: 'forecolor', disabled: true }, 
        { type: 'color', label: 'Background Color', value: 'backcolor', disabled: true } 
       ] 
      }, 
      { type: 'separator' }, 
      { group: 'indentlist', label: 'Lists', 
       buttons: [ 
        { type: 'push', label: 'Create an Unordered List', value: 'insertunorderedlist' }, 
        { type: 'push', label: 'Create an Ordered List', value: 'insertorderedlist' } 
       ] 
      } 
     ] 
    } 
}; 
1

Ajouter cette CSS à la page:

.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar { 
    display: none; 
} 

Pour référence ultérieure, le soutien YUI est ici: http://yuilibrary.com/forum/