0
如何將數據添加或關聯到TinyMCE中的自定義菜單按鈕?我的代碼是這樣的:將數據添加到TinyMCE中的自定義菜單按鈕
tinyMCE.init({
selector: 'textarea',
toolbar: " example",
setup: function (ed) {
ed.addButton('example', {
type: 'menubutton',
title: 'Insert Latest Newsletter Link',
icon: false,
text: 'Insert Latest Newsletter Link',
menu: [{text: "Insert Link", onclick: function() {
//this is where i want to retrieve data that
//i associated with my button
} }]
});
}