Support » Plugin: Post Editor Buttons Fork » [Plugin: Post Editor Buttons Fork] Can add span buttons, but not spoiler one…

  • Resolved midori

    (@midori)


    Hello,

    I can create <span style='whatever'> buttons, but NOT <spoiler>. To be precise, when I create it, by dutifully filling caption spoiler, before <spoiler> and after </spoiler>, as soon as I save, it only keeps the Caption and empties the two others. The button appears with the right name but does nothing.

    http://wordpress.org/extend/plugins/post-editor-buttons-fork/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kailey (trepmal)

    (@trepmal)

    Volunteer Mod & Reviewer

    You can allow the spoiler tag, add this to the plugin, or to the functions.php file in your theme.
    add_filter( 'admin_init', 'allowed_tags' );
    function allowed_tags() {
    global $allowedposttags;
    $allowedposttags['spoiler'] = array();
    }

    If you need to add classes or ids to the spoiler tag, do this

    add_filter( 'admin_init', 'allowed_tags' );
    function allowed_tags() {
    global $allowedposttags;
    $allowedposttags['spoiler']['class'] = array();
    $allowedposttags['spoiler']['id'] = array();
    }

    midori

    (@midori)

    Oh, perfect. That was very quick AND working. Thank you very very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Post Editor Buttons Fork] Can add span buttons, but not spoiler one…’ is closed to new replies.