我已經解決了我的部分幾乎添加一個按鈕。如何添加一個新的按鈕在tinymce
setup : function(ed) {
// Add a custom button
ed.addButton('Information', {
title : 'Viktig Information',
image : '../img/page_white_text.png',
onclick : function() {
// Add you own code to execute something on click
ed.focus();
ed.selection.setContent('Text here');
}
});
}
但現在我想知道如何讓這個工作像他們大膽的按鈕和東西?所以,當我按大膽的文字變得粗體..
我想與我的按鈕相同,當我按我的按鈕,我想div出現。任何人都知道我能做到這一點?!
你是用tinymce 3還是4? – Thariama
Iam使用版本3 – Tommy
+1好問題 – Thariama