WordPress.org

Support

Support » Plugins and Hacks » TinyMCE Advanced » [Plugin: TinyMCE Advanced] different button layouts for different users?

[Plugin: TinyMCE Advanced] different button layouts for different users?

  • Hello,
    for me the plugin works perfectly in WP3.0.1

    But I would like to configure different button layouts for different users (different roles):
    ADMIN: “enabled everything”
    EDITOR: “no visualchars, no abbr, acronym, styleprops, forecolor,backcolor…”

    Is there any possibility to tackle it?
    Thanks a lot,
    with regards, joo

    http://wordpress.org/extend/plugins/tinymce-advanced/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,
    don’t know if you resolved, but… i give you an hint:

    use a ONEOFYOURUSERDETECTIONSCRPTS for check the current user and then apply a function like this with the filter ‘mce_buttons’:

    NOTE FOR FILTERS:

    mce_buttons –> row n.1
    mce_buttons_2 –> row n.2
    mce_buttons_3 –> row n.3
    mce_buttons_4 –> row n.4

    function yourfunc($buttons){
    	unset($buttons['0']);  // delete the firt button of the row
    	return $buttons;
    }
    add_filter( 'mce_buttons', 'yourfunc', 1000 ); //use 1000 because the same filter used inside the PLUGIN use 999...

    That’s all folks 🙂

    Let me know if all is ok 😉

    Hello,
    yes, I have done it exactly in this way.
    :-]

    Nevertheless, thanks for your reply.
    Cheers, Joo

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: TinyMCE Advanced] different button layouts for different users?’ is closed to new replies.
Skip to toolbar