Support » Plugin: Enlighter - Customizable Syntax Highlighter » TinyMCE btn on frontend for non-admin

  • Resolved Petr

    (@backtest)


    Hi, i use the WP User Frontend for frontend posting, also i use TinyMCE Advanced for editing and Enlighter. It’s good works for me, but non-admin users don’t see Enlighter button on TinyMCE toolbar on frontend form (I see it on frontend with admin privileges).

    How i can fix it?

    P.S. Sorry my English)

    https://wordpress.org/plugins/enlighter/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Andi Dittrich

    (@andi-dittrich)

    Hi backtest,

    do you mean this plugin ?
    https://de.wordpress.org/plugins/tinymce-advanced/

    Petr

    (@backtest)

    Hi, Andi, yes i mean this.

    And this plugin https://wordpress.org/plugins/wp-user-frontend/ for creating frontenf form.

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    Hi backtest,

    the buttons are disabled, because the following condition is not fulfilled for normal users (Authors and Contributors):

    $canEdit = is_user_logged_in() && current_user_can('edit_posts') && current_user_can('edit_pages');

    i’ve especially added this check to ensure that the user is allowed to edit posts + pages.

    maybe it’s better to use the following condition as check:

    IS_LOGGED_IN AND (CAN_EDIT_POSTS OR CAN_EDIT_PAGES)

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    It’s fixed in the current development version (3.1) by changing the condition to IS_LOGGED_IN AND (CAN_EDIT_POSTS OR CAN_EDIT_PAGES)

    the release will be available within the next days!

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    v3.1 is out including the improvement!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘TinyMCE btn on frontend for non-admin’ is closed to new replies.