kunia (@joannyjb)

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • @joannyjb

    Member

    I have my answer :

    file : bb-include>template-fonction.php

    search : “bb_allowed_tag”

    Include :

    // Add Tags with allow_tags
    <p> function allow_more_tags( $tags ) {<br />
    $tags['p'] = array('style' => array());<br />
    $tags['span'] = array('style' => array());<br />
    $tags['b'] = array('style' => array());<br />
    $tags['em'] = array('style' => array());<br />
    $tags['ol'] = array('style' => array());</p>
    <p> return $tags;<br />
    }</p>
    <p> add_filter( 'bb_allowed_tags', 'allow_more_tags' );

    under this…

    // format=list or array( 'format' => 'list' )<br />
    function get_allowed_markup( $args = '' ) {<br />
    $args = wp_parse_args( $args, array('format' => 'flat') );<br />
    extract($args, EXTR_SKIP);</p>
    <p> $tags = bb_allowed_tags();<br />
    unset($tags['pre'], $tags['br']);<br />
    $tags = array_keys($tags);</p>
    <p> switch ( $format ) :<br />
    case 'array' :<br />
    $r = $tags;<br />
    break;<br />
    case 'list' :<br />
    $r = "<ul class='allowed-markup'>nt
    <li>";<br />
    $r .= join("</li>
    nt
    <li>", $tags);<br />
    $r .= "</li>
    nn";<br />
    break;<br />
    default :<br />
    $r = join(' ', $tags);<br />
    break;<br />
    endswitch;<br />
    return apply_filters( 'get_allowed_markup', $r, $format );<br />
    }

    @joannyjb

    Member

    How I can use it?

    Where I have to insert it?

    Thx !

    @joannyjb

    Member

    Sorry 4 the question! This probleme has been resolved @ :

    https://bbpress.org/forums/topic/paragraph-tag-after-tinymce#post-15876

    @joannyjb

    Member

    Hello, I have the same probleme as csseur3. When I publish content with TinyMCE, markers re encoding like text and not as html…

    The code produced is <p><b>exemple</b></p>

    How can we fix that?

    Thanks 4 help !

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