I'm searching a way to add a custom button to the TinyMCE editor when clicked insert into the visual editor some text.
For example: button called "Hi" when clicked insert into the editor
"Hello I'm <B>Mark</b>!"
Is it possible? And how?
Try this :
Add this code to
For more info visit this link
If you do want to make a button from scratch try using this code:
This snippet plugin (electricg/tinymce-snippet-plugin) might be useful if you just quickly want to add custom buttons with drop downs without coding so much.
You can also look inside the plugin to make a high level system if you are interested.