• Resolved Dysschord

    (@dysschord)


    I’ve looked for an answer here in forum, unable to find it, and through all options on my site.

    I use TinyMCE as my page/post editor. The YOP Poll icon appears in the Editor Toolbar, and I cannot find a way to remove it under the TinyMCE options for toolbar display.

    I do not want Contributors to be able to add polls. How do I remove this?

    https://ww.wp.xz.cn/plugins/yop-poll/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    Hello

    You will need to edit admin.php under inc folder.

    Look for the function called ajax_get_polls_for_html_editor and delete everything except for die();

    Please note that these changes will be lost when updating YOP Poll.

    Best
    YOP Team

    Thread Starter Dysschord

    (@dysschord)

    Thanks. Just tried this. It ends up breaking the editor – when I click on Add New, I see a blank page.

    Thread Starter Dysschord

    (@dysschord)

    Any other suggestions?

    Plugin Author YOP

    (@yourownprogrammer)

    Hello

    It looks like there was a problem when you deleted the code.

    Please make sure this is the only code you have for function ajax_get_polls_for_html_editor()

    public function ajax_get_polls_for_html_editor() {
                check_ajax_referer( 'yop-poll-html-editor' );
                die();
    }

    Best
    YOP Team

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Remove Icon in Editor?’ is closed to new replies.