TinyMCE 툴바에 이미지가없는 텍스트 만있는 커스텀 버튼을 추가하는 방법이 있습니까? 설정 이미지 경로 섹션을 제거하려고 시도했지만 이제는 빈 버튼이 있습니다. 이것은 내 기존 코드입니다 :텍스트가있는 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>
이미지없이 버튼에 텍스트를 설정하는 방법은 무엇입니까?