diff --git a/wp-content/themes/mag-wp/custom/andres-tinymce-buttons.js b/wp-content/themes/mag-wp/custom/andres-tinymce-buttons.js new file mode 100644 index 0000000..deba098 --- /dev/null +++ b/wp-content/themes/mag-wp/custom/andres-tinymce-buttons.js @@ -0,0 +1,20 @@ +(function() { + tinymce.PluginManager.add('andres_interview_buttons', function( editor, url ) { + editor.addButton( 'andres_interview_question', { + title: 'Interview Queston', +// icon: 'icon fa fa-question', + text: 'IQ', + onclick: function() { + editor.selection.setContent('
' + editor.selection.getContent() + '
'); + } + }); + editor.addButton( 'andres_interview_answer', { + title: 'Interview Answer', +// icon: 'icon fa fa-comment-o', + text: 'IA', + onclick: function() { + editor.selection.setContent('
' + editor.selection.getContent() + '
'); + } + }); + }); +})(); \ No newline at end of file