Skip to:
Content
Pages
Categories
Search
Top
Bottom

Center and Space Between Paragraphs

  • @arutam

    Participant

    Hi People!

    Please, some help to solve this:

    1. I would like to have the code to center text, images, and things in the editor of bbpress. Any idea? (If i write <center></center> in the editor the text after the code change their size :/ ).

    2. Simple, how can i add a double space to text in the editor? (if i tap a double enter, it should show a double space)

    Wordpress 4.2.2
    Bbpress 2.5.7

    Thank You!

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

    Moderator

    Enable Visual Editor

    TinyMCE Advanced allows you to include alignment buttons.

    You might need this code, because bbPress does not support all html for participant users that TinyMCE Advanced may use for its buttons.

    https://gist.github.com/robkk/788f75d47466c74e5340

    @arutam

    Participant

    Hi Robkk.

    Thanks for the answer.

    I read about to integrate TinyMCE, but I just need the both things (center and space). Do you know if it posible add them to the editor?

    @robkk

    Moderator

    The center should be a tinymce button either by default or by installing tinymce advanced.

    THe double space thing

    read this

    http://www.wpbeginner.com/beginners-guide/how-to-add-single-double-line-spacing-in-wordpress/

    @arutam

    Participant

    @Robkk sorry for the late answer…

    I am back with the project… I realized what you said, the html is available only for admin; but with your code solved everything!

    Thanks!

    In case anyone need… I made Visual Editor visible in bbPress with this code:

    /*Editor Visual bbPress*/
    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar