WordPress.org

Ready to get started?Download WordPress

Forums

Black Studio TinyMCE Widget
[resolved] change visual/html tabs by user role? (2 posts)

  1. kathompson
    Member
    Posted 1 year ago #

    Can you change the editor so that admin is the only user that can see the HTML tag? I want all other users to only be able to see the visual editor.

    http://wordpress.org/extend/plugins/black-studio-tinymce-widget/

  2. Marco Chiesi
    Member
    Plugin Author

    Posted 1 year ago #

    By default the access to widget administration is enabled only for administrators, so users with less privileges cannot even access to the widget editor instances.
    You may change these permissions using wordpress hooks or specific plugins, but the ability to use both Visual and HTML editing modes is a native WordPress feature, so it may be not so easy to get rid of it without hacking WordPress core code.

    A quick and easy workaround may be to hide the Visual/HTML tab buttons via CSS:

    - For Black Studio TinyMCE Widgets editor instances:

    .editor_toggle_buttons {
      display: none;
    }

    - For Post/Pages editor instances:

    .wp-editor-tools {
      display: none;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.