How can I manipulate TinyMCE listbox elements?
问题 In TinyMCE how can add and remove options to listboxes in a plugin pop up window? 回答1: editor.addMenuItem('insertValue', { text: 'Menu item text', context: 'tools', onclick: function() { availableElements=[ { text:'Start typing into the search box' } ]; var w=editor.windowManager.open({ title: 'Pop up window title', body:[ { type:'textbox', name:'title', label:'Search', onkeyup:function(e){ $.post('THE URL WHICH GIVE BACK THE OPTIONS AS A JSON').done(function(response){ response=JSON.parse