Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8237687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:33:13+00:00 2026-06-07T19:33:13+00:00

I’ve been trying to implement this plugin in my jQuery version of TinyMCE: http://www.tinymce.com/tryit/menu_button.php

  • 0

I’ve been trying to implement this plugin in my jQuery version of TinyMCE:

http://www.tinymce.com/tryit/menu_button.php

This example has the plugin loaded with TinyMCE, but that doesn’t work with jQuery.

What I want to do is to create it as a separate TinyMCE plug-in, but I am unsure how to accomplish that. Tutorials for plugin creation with TinyMCE are all about dialog windows, but that’s not what I need, as I just want to have a dropdown menu of little snippets that will be added to the place where the cursor is.

Can anyone point me to some example where it shows how to create such a toolbar dropdown? I’ve gone through Google like crazy, unable to find anything remotely similar and the example I posted above is not technically a plugin, since I need to generate the content with PHP.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T19:33:15+00:00Added an answer on June 7, 2026 at 7:33 pm

    This task is not so easy (had to struggle throught this too).
    You need to set the function createControl in one of your own custom plugins.
    I will show you some code of one of my own plugins which should point you in the right direction

        /**
         * Creates control instances based in the incomming name. This method is normally not
         * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
         * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
         * method can be used to create those.
         *
         * @param {String} n Name of the control to create.
         * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
         * @return {tinymce.ui.Control} New control instance or null if no control was created.
         */
        // Creates a custom listbox
        createControl: function(n, cm) {
    
            switch (n) {
                // you may define more than one listbox here!
                // make sure this string is in your buttonconfig
                case 'my_new_listbox':
    
                    var listboxIdPart = 'my_new_listbox';
    
                    // Listbox erzeugen
                    var ctrl = cm.createListBox(listboxIdPart, {
                    title : 'Title',
    
                        // v could be 'value1_here' or "value2_here", it isbest to use simple numers as values
                        //need to specify what shall happen depending on the value
                      onselect : function(v) {
    
                        if (v == 0){
                            return;
                        }
                        else {
                                                  // alert('value choosen:' + v)
                                                  // your actions here
                          return;
                          }                     
                      }
                    }); // closing bracket
    
                                        // Add entries to the dropdown
                    ctrl.add('entry1', 'value1_here');
                    ctrl.add('entry2', 'value2_here');
                    ctrl.add('entry3', 'value3_here');
    
                    // Return new listbox
                    return ctrl;
            }
            return null;
        },
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to create an if statement in PHP that prevents a single post
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.