开发者

Wordpress TinyMCE buttons

开发者 https://www.devze.com 2023-03-31 02:08 出处:网络
For Wordpress TinyMCE when adding or editing posts. I have this issue where I would like to have more buttons for user so it\'s same as admin. At the moment when you login as user it shows limited amo

For Wordpress TinyMCE when adding or editing posts. I have this issue where I would like to have more buttons for user so it's same as admin. At the moment when you login as user it shows limited amount of buttons. Is there a way to show same buttons as admin f开发者_Python百科or users aswell? See images below admin has more buttons... I can only get more buttons for superadmin user...

Wordpress TinyMCE buttons

Wordpress TinyMCE buttons


Pretty sure any user can toggle the visibility of all available buttons by selecting the icon before the TV called 'Kitchen Sink'. In your screen shots: Admin user has previously enabled it, other user hasn't.

You can force it to be always on with the following:

/**
 * Force the kitchen sink to always be on
 */
add_action('auth_redirect', 'tcb_force_kitch_sink_on');
function tcb_force_kitch_sink_on(){
  set_user_setting('hidetb', 1);
}
0

精彩评论

暂无评论...
验证码 换一张
取 消