Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

J

jtob

@jtob
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • TinyMCE - superscript button in backend text editor
    J jtob

    Hey there,

    I use quite a lot of superscript numbers in my texts. I can insert them using <sup> but it is time-consuming.

    I tried to activate the extra superscript buttons in the normal text editor bar. I added the following code to ThemeFunctions.php, which I was hoping would trigger the hidden TinyMCE button:

    function my_mce_buttons_2( $buttons ) {	
    	/**
    	 * Add in a core button that's disabled by default
    	 */
    	$buttons[] = 'superscript';
    	$buttons[] = 'subscript';
    
    	return $buttons;
    }
    add_filter( 'mce_buttons_2', 'my_mce_buttons_2' );
    

    This didn't have any impact on the backend text editor. I tried a few iterations of the same code, but same thing.

    After reading a few other posts on here talking about TinyMCE, I am guessing you are using a custom text editor and it's not possible to add these superscript buttons. Is that right? If there's a way to show them, please do let me know :)

    Thanks!
    Jonas

    Bug Reports
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Search