I am using j-query tinyMce plugin as an editor. Everything was going well. But now I need to add a custom button so that I can insert a date from a date set. What i did is
Added button on the toolbar. and his work is to show dates in a text area that is outside the editor. But I want to show the datepicker below this button. here is my current code.
setup: function(editor) {
editor.addButton('datepicker', {
type: 'button',
class: 'MyCoolBtn',
text: 'Datepicker',
tooltip: 'Pick a date',
onClick: function() {
$('#datepicker').datepicker('show')
},
icon: true,
});
}
here is a screenshot for a better understanding 
source
share