2011-06-17 11 views
5

私はWYSIWYGエディタとしてTinyMCEのを使い始め、誰かが私の質問を見て、この素敵なエディタを使用している場合、私は思ったんだけどはここで、私を助けることができますが、私のスクリプトです:tinyMCE Editorからアイコンを削除するには?

<script type="text/javascript"> 
tinyMCE.init({ 
     mode : "exact", 
     elements : "comment", 
     theme : "advanced", 
     plugins : "emotions,spellchecker,advhr,insertdatetime,preview", 

     // Theme options - button# indicated the row# only 
     theme_advanced_buttons : "undo,redo,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,|,forecolor,backcolor,link,unlink,image,charmap,emotions", 
     theme_advanced_toolbar_location : "top", 
     theme_advanced_toolbar_align : "left",   
     skin : "o2k7", 
     skin_variant : "silver" 
}); 
</script> 

が、私は他の人のアイコンを取得し、本当にドン'sub、' sup、 'HTML editor'のようにそれを削除する方法はわかりません。 ありがとうございます。 私は敬具です。

答えて

9

ツールバーの3行すべてにボタンを定義する必要があります(ボタンを入れたくない場合でも)。例:

theme_advanced_buttons1 : "undo,redo,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,|,forecolor,backcolor,link,unlink,image,charmap,emotions", 
theme_advanced_buttons2 : "", 
theme_advanced_buttons3 : "", 

参考:http://tinymce.moxiecode.com/wiki.php/Configuration:theme_advanced_buttons_1_n

は、そうでなければ、私はあなたには、いくつかのデフォルトの動作を得ると確信しています。それが役立つかどうか試してみてください。など

+0

解決、おかげでトンが、それは私が望んでいたとして働く、という回答! –

+0

+1正しい解決 – Thariama

+0

+1私からも..私はドキュメントを読むと思った – Rob

0

theme_advanced_buttons1あなたはこの

$(window).load(function(){ 
     $('#mce_14-body').hide(); 
     $('#mce_28-body').hide(); 
     $('#mce_20-body').hide(); 
     }); 

IDセレクタは、パネルやボタンを指すことができます試すことができますので、私のために働いていない

関連する問題