First add your additional buttons inside the buttons callback..
function register_button($buttons) {
array_push($buttons, "quote","wpse-rules");
return $buttons;
}
Then add additional buttons function inside the plugin javascript..
init : function(ed, url) {
ed.addButton('quote', {
title : 'Add a Quote',
image : url+'/image.png',
onclick : function() {
ed.selection.setContent('[quote]' + ed.selection.getContent() + '[/quote]');
}
});
ed.addButton('wpse-rules', {
title : 'WPSE Rules',
image : url+'/image.png',
onclick : function() {
alert( 'WPSE Rules!' );
}
});
},
And so on, for any additional buttons you want..
Related Posts:
- Create Button for Shortcode in Text Editor
- Using wp_editor in shortcode
- WordPress adds br in between my shortcode
- Custom Shortcode and Button not Working after 3.9 update
- TinyMCE popup windows using WP functions
- How to prevent tinymce macro from inserting nbsp;?
- Tinymce shortcodes within shortcode contents
- TinyMCE get selected text and underlying HTML
- Is it possible to add a repeater field to TinyMCE’s option window?
- How do I preview the result of a shortcode in the TinyMCE editor?
- Tinymce list of shortcodes button
- How to type shortcode-like text in WordPress TinyMCE visual editor?
- Preserve shortcode content formatting
- Gutenberg Block with Select from JSON-File
- Custom Shortcode: define cursor position/insertion point?
- Documentation for adding a tinyMCE view for visual live preview of custom shortcode?
- Add buttons to the new TinyMCE WP Editor. Javascript API
- How can I implement shortcode on click event
- How to prevent shortcode preview from breaking in tinymce editor?
- wp_editor in thickbox
- How to protect parts of my code from TinyMCE modification when switching from text to visual mode?
- Placing tags on wordpress visual editor using shortcodes
- show shortcodes in editor
- Pass data back to TinyMCE from Thickbox
- stop WordPress removing shortcode from content [closed]
- How to add custom ‘layout’ buttons to wordpress editor?
- Shortcode from admin textarea to page
- Putting a space between the buttons [closed]
- Adding YouTube button to TinyMCE editor
- How to add a shortcode that creates an adjacent column of text in the content editor?
- Adding a Media Button to the WordPress Content Editor
- Wordpres Tinymce custom button (Gavick guide)
- How to display a page dependent on a url parameter supplied by a form/button page?
- tinymce custom button
- Why can’t I type [ ] opening and closing brackets on the Visual tab?
- Output html source tags inside shortcode
- How to print [embed] code in wordpress [duplicate]
- What makes a placeholder resizable in Tinymce?
- Identifying first and last instance of shortcode in post
- How to add button to WYSIWYG to insert shortcode with params (filled in system popup)?
- convert it into short code & explan how? [closed]
- Enqueue Scripts / Styles when shortcode is present
- Conditionally Loading JavaScript/CSS for Shortcodes
- How to add a shortcode button to the TinyMCE editor?
- What does extract( shortcode_atts( array( do?
- Extra TinyMCE editor strips and tags?
- Solution to render Shortcodes in Admin Editor
- How do I escape a ‘]’ in a short code?
- Pass boolean value in shortcode
- Show shortcode without executing it
- Shortcode always displaying at the top of the page
- Redirect function inside a Shortcode
- How to create a shortcode with 1 parameter (atts)
- How to add “Insert/Edit link” button in custom popup tinymce window?
- Forcing reload of editor-style.css
- how to show the syntax of a shortcode
- Custom shortcode being executed when saving page in wp-admin
- Add self-closing shortcode button to TinyMCE in WP 4.6
- Change appearance of shortcode text inside editor
- Add popup window to TinyMCE buttons
- current_shortcode() – detect currently used shortcode
- Initialize TinyMCE editor / visual editor after AJAX insert
- shortcodes output before content [duplicate]
- No filter of code on switch from html to visual editor, how?
- WordPress plugin shortcode not working
- How to add stylesheets only to pages with specific shortcode?
- WordPress 3.9 – Trouble Editing TinyMCE 4.0
- How set defaults on wpLink()
- Using get_option() in JavaScript
- Add button to TinyMCE bar without creating a plugin
- How to modify image editor dialog options on WordPress?
- Shortcode empty attribute
- How to include own css on wordpress tinymce editor?
- How does a shortcode work?
- Shortcode outputs at the top of the_content
- the_excerpt and shortcodes
- Remove wpautop from shortcode content / remove whitespace in buffering
- How to force TinyMCE in WordPress to replace newlines with tags and not with
- Get current post id witout passing in shortcode
- Why are you using add_action for shortcode?
- How to get URL param to shortcode?
- Why did multiple line breaks stop working in text editor?
- Check if post/page has gallery?
- Get first video from the post (both embed and video shortcodes)
- Get shortcode name from within it’s callback function? [duplicate]
- Wordspress add into my javascripts
- Making a Shortcode [NEXT] and [PREVIOUS] to place into specific posts for post navigation
- How do I create a Shortcode that returns text if domain is .com, not .co.uk
- Using preg_replace to separate gallery from the_content?
- Is there a way to add another row to the tinyMCE kitchen sink toggle?
- Remove specific shortcode from get_the_content()
- How to display the site name in a WordPress page, or post
- Hide/show content starting in the middle of a paragraph
- Combining shortcode and get_template_part
- How can I put a wp_redirect into a shortcode?
- Escaping quotes from shortcode attributes
- Run visual composer code in php page
- short code output too early
- Shortcode in shortcode: How to append variable?
- How i can i add a split button or list box to the WordPress TinyMCE instance