0
,當我對http://demo.silverstripe.com/admin/看看[用戶名:admin,密碼:admin]
我注意到他們有覆蓋的插入圖像按鈕並且還將插入閃光燈按鈕如何自定義tinyMCE的內置按鈕狀-silverstripe- CMS
他們用自己的小部件替換了它。
問題是什麼是最簡單的方法來實現這個或最好的指南?
注:我沒有使用sliverstripe或由CMS
,當我對http://demo.silverstripe.com/admin/看看[用戶名:admin,密碼:admin]
我注意到他們有覆蓋的插入圖像按鈕並且還將插入閃光燈按鈕如何自定義tinyMCE的內置按鈕狀-silverstripe- CMS
問題是什麼是最簡單的方法來實現這個或最好的指南?
注:我沒有使用sliverstripe或由CMS
添加自己的按鈕在TinyMCE的網站相當不錯描述的任何準備:http://tinymce.moxiecode.com/tryit/custom_toolbar_button.php
從網站上粘貼:
tinyMCE.init({
mode : "textareas",
theme : "advanced",
theme_advanced_buttons1 : "mybutton,bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
plugins : 'inlinepopups',
setup : function(ed) {
// Add a custom button
ed.addButton('mybutton', {
title : 'My button',
image : 'img/example.gif',
onclick : function() {
// Add you own code to execute something on click
ed.focus();
ed.selection.setContent('Hello world!');
}
});
}
});
只要你改變這一點。
+1這就是要走的路 – Thariama 2011-02-24 09:36:15
非常感謝你 – ahmedsafan86 2011-02-24 13:39:26