TinyMCE ツールバーにカスタム ボタンをテキストのみ (画像なし) で追加する方法はありますか? 設定画像のパス セクションを削除しようとしましたが、空白のボタンが表示されました。これは私の既存のコードです:
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode: "textareas",
theme: "advanced",
theme_advanced_buttons1: "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink",
theme_advanced_buttons2: "mybutton",
theme_advanced_buttons3: "",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statusbar_location: "bottom",
setup: function (ed) {
// Add a custom button
ed.addButton('mybutton', {
title: 'My button',
onclick: function () {
ed.focus();
ed.selection.setContent('SampleText');
}
});
}
});
</script>
画像なしでボタンにテキストを設定するには?