• Resolved supernova42

    (@supernova42)


    Is there a way of reducing or removing some of the functions within the editor that are available to forum users.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter supernova42

    (@supernova42)

    In your settings page you allow the use of a minimalistic editor. I would like to replicate that routine with a plugin I have. Can you give me some idea of how you do it please.

    Many Thanks

    Plugin Author Asgaros

    (@asgaros)

    Hello @supernova42

    Asgaros Forum uses the built-in WordPress editor which is based on TinyMCE. This editor is fully customizable by plugins. If you want to change the buttons or other editor-related things, you can use a plugin like TinyMCE Advanced:
    https://wordpress.org/plugins/tinymce-advanced/

    Thread Starter supernova42

    (@supernova42)

    That is absolutely fantastic and it’s easy to implement. Just one thing – With regard to the Visual and Text mode, the Text mode is confusing for most so can I disable that mode too. I can’t see an option to do that.

    Also, any modifications made to the editor apply to everyone even administrators. Can that be overridden so that administrators have the full editor.

    Y-World gave me the following at one time but it doesn’t seem to work now.

    /* Addition to Asgaros Forum to give enhanced editor for Administrators */
    function my_editor_settings($options) {
    if (current_user_can(‘manage_options’)) {
    $options[‘teeny’] = false;
    }
    return $options;
    }
    add_filter(‘asgarosforum_filter_editor_settings’, ‘my_editor_settings’);

    Plugin Author Asgaros

    (@asgaros)

    Hello again @supernova42

    If you use TinyMCE Advanced, the WordPress editor will be completely overwritten by this plugin. For the code-snippet you posted you can try to change the priority:

    Higher:
    add_filter(‘asgarosforum_filter_editor_settings’, ‘my_editor_settings’, 1);

    Lower:
    add_filter(‘asgarosforum_filter_editor_settings’, ‘my_editor_settings’, 9999);

    Maybe this allows you to overwrite the textmode-setting for TinyMCE Advanced.

    If not, please try to contact the developers of that plugin and ask them if there is a possibility to only apply certain settings for certain WordPress User-Roles (subscribers in your case).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘The Editor’ is closed to new replies.