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
- Solution to render Shortcodes in Admin Editor
- Shortcode outputs at the top of the_content
- How i can i add a split button or list box to the WordPress TinyMCE instance
- Autoembeds don’t work with paragraphs
- How can I insert HTML attributes with an existing TinyMCE button?
- Hide Default Video Shortcode Controls on PageLoad
- Change font-size within a shortcode
- How can I show the Jetpack Subscriptions form in a page? [closed]
- Splitting Shortcode Attributes not working
- getting values from a shortcode with an include
- Create a shortcode in WordPress, again
- 2nd button row from WP Super Edit or TinyMCE Advanced doesn’t show to 2nd admin
- TinyMCE Plugin Parameter
- Change link in get_terms if there is only one post in the category
- How to get total number of shortcodes in the wordpress application?
- shortcode_atts – one URL variable not working
- Caption shortcodes not including caption as attribute
- Passing a nested shortcode as an argument of another shortcode?
- Custom TinyMCE style formats disabled
- Nested Code Snippets [closed]
- How do I display “Hello username” if logged-in on the homepage
- Adding a Cookie Session to Shortcode Content
- Shortcode to show current post category with link
- How to register a user via modal after clicking a link in the shortcode?
- add widget to page content (using shortcode)
- Pagination for a page created by the shortcode “Product”
- Freeze a shortcode in place?
- Unable to the get the gallery inserted between shortcodes
- Complex Slider Shortcode Help
- Displaying audio player as preview in audio post in WP3.6
- How to transform WordPress user role code to WP shortcode?
- Does short-code slow down my WordPress site?
- redirect if shortcode exists
- Position shortcode off [duplicate]
- ob_get_clean(); doesn’t return $value in shortcode?
- How to Get Shortcode in Excerpt to follow Document Flow
- Cant fix this Warning: Invalid argument supplied for foreach() in [closed]
- How to find out what handler is registered to a shortcode
- Why Editor reformats my code
- How to display NextGEN gallery in templates?
- jQuery Tabs in Shortcode API
- Echo Extra Shortcode HTML to wp_foot
- How can I use a plugin shortcode inside of a html form?
- Disable wpautop on Shortcode attributes
- remove shortcode pagination for specific url referrer
- Third-Party API – PHP Fatal Errors Paired with http_request_failed / cURL error 28
- Shortcode PHP file for two conditions passed when do shortcode
- Using within a shortcode
- How do I point bloginfo(‘stylesheet_directory’) to my parent theme?
- Add audio file to post using custom term meta field as link [closed]
- How to list child pages with excerpts, e.g. [child-pages depth=”1″ excerpt=”1″]
- Video shortcode outside WordPress not working with IE and mediaelement’s Flash fallback
- Display title of child pages in shortcode
- Create plugin/function to catch XML-data via Shortcode
- Why My slider shortcode display above header
- Shortcode conversion to hrml when post is published
- Shotcode error on functions
- Shortcode for displaying the user’s first name?
- Can I prevent wordpress adding and tags to autoembeds
- Shortcode – Display inline icon before text [closed]
- Shortcode attributes from meta query variables