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 7970331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:22:55+00:00 2026-06-04T07:22:55+00:00

I have enabled the ‘fontsizeselect’ plugin in tinyMCE. My question is how do I

  • 0

I have enabled the ‘fontsizeselect’ plugin in tinyMCE. My question is how do I remove the header (title) of the drop-down menu?

enter image description here

Edit:

I’ve tried removing it using JQuery .remove(), but after that the height of whole list is calculated wrong.

The second option I tried was:

http://www.tinymce.com/wiki.php/API3:method.tinymce.ui.DropMenu.remove

But that just went wrong and “fontsizeselect.remove(title)” (analogically to .add) makes error to whole tinyMCE – “missing : after property id”. Problably it is completly bad method to do this.

The third option was editing tiny_mce\themes\advanced\editor_template_src.js line 467:

c = ed.controlManager.createListBox('fontsizeselect', {title : 'advanced.font_size', onselect : function(v) {...}

but seems, that TinyMCE developers thought, that every drop-down must have title/header

  • 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-04T07:22:56+00:00Added an answer on June 4, 2026 at 7:22 am

    SOLVED:
    before initialization of MCE we have to override the menu rendering function

    (function(tinymce) {
    var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, Dispatcher = tinymce.util.Dispatcher, undef;
    
    tinymce.create('tinymce.ui.ListBoxNoTitle:tinymce.ui.ListBox', {
        renderMenu : function() {
            var t = this, m;
    
            m = t.settings.control_manager.createDropMenu(t.id + '_menu', {
                menu_line : 1,
                'class' : t.classPrefix + 'Menu mceNoIcons',
                max_width : 250,
                max_height : 150
            });
    
            m.onHideMenu.add(function() {
                t.hideMenu();
                t.focus();
            });
    
    /*          m.add({
                title : t.settings.title,
                'class' : 'mceMenuItemTitle',
                onclick : function() {
                    if (t.settings.onselect('') !== false)
                        t.select(''); // Must be runned after
                }
            });
    */
            each(t.items, function(o) {
                // No value then treat it as a title
                if (o.value === undef) {
                    m.add({
                        title : o.title,
                        role : "option",
                        'class' : 'mceMenuItemTitle',
                        onclick : function() {
                            if (t.settings.onselect('') !== false)
                                t.select(''); // Must be runned after
                        }
                    });
                } else {
                    o.id = DOM.uniqueId();
                    o.role= "option";
                    o.onclick = function() {
                        if (t.settings.onselect(o.value) !== false)
                            t.select(o.value); // Must be runned after
                    };
    
                    m.add(o);
                }
            });
    
            t.onRenderMenu.dispatch(t, m);
            t.menu = m;
            }
        });
    })(tinymce);
    

    And with this comment on “m.add” You just have to add

    tinyMCE.init({
            setup : function(ed) {
                ed.onBeforeRenderUI.add(function(ed){
            ed.controlManager.setControlType('listbox', tinymce.ui.ListBoxNoTitle);
                });
            }
    
    });
    

    this setup to standard initialization of tinyMCE. So, it can be done without editing source files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have enabled GZip compression via web.config with many helps from another question: Enable
I have enabled active directory authentication in my desktop application, my question is what
I have enabled blur on my window. I have some edit fields and some
I have enabled the Web Server on my Mac OS X (10.5.6) by going
I have enabled the lighttpd mod_webdav module and set up a webdav mount point
I have enabled USB debugging on my phone and have set the Debuggable permission
I have enabled the static analyzer, but it is telling me that at the
I have enabled site-wide Django caching , but the third-party apps I am using
I have enabled google Minify in code igniter using this library on our website.
I have a combobox that I have Enabled = false. When that is the

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.