• Resolved robgrahamsydney

    (@robgrahamsydney)


    Boone,

    The users on our site are really appreciating your work. So thank you. If you wanted to take a look. PocketProjectLab.org

    I do apologize for such a trivial question. On the edit tab, the edit window where we type our text always has to be resized to a greater height. Is there a way to change the default height?

    Much appreciated.

    Rob

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Cavins

    (@dcavins)

    Hi Rob-

    You can use a filter like this, in your bp-custom.php, another plugin file, or your theme’s functions.php file:

    
    add_filter( 'bp_docs_wp_editor_args', 'dc_filter_bp_docs_editor_size' );
    function dc_filter_bp_docs_editor_size( $args ) {
        $args['textarea_rows'] = 30;
        return $args;
    }
    
    Thread Starter robgrahamsydney

    (@robgrahamsydney)

    Thank you David,

    I gave this a go but it did not increase the size of the editing area. Maybe the html from that section might help. I have pasted it below. It is the height: 591px that I want to increase the default for.

    Your help is really appreciated.

    Rob

    <div id=”mceu_34″ class=”mce-edit-area mce-container mce-panel mce-stack-layout-item” hidefocus=”1″ tabindex=”-1″ role=”group” style=”border-width: 1px 0px 0px;”><iframe id=”doc_content_ifr” frameborder=”0″ allowtransparency=”true” title=”Rich Text Area. Press Alt-Shift-H for help.” style=”width: 100%; height: 591px; display: block;”></iframe></div>

    Plugin Author David Cavins

    (@dcavins)

    Hi Rob-

    I’ve verified that the snippet as provided works. You can really blow it up to be sure:

    
    add_filter( 'bp_docs_wp_editor_args', 'dc_filter_bp_docs_editor_size' );
    function dc_filter_bp_docs_editor_size( $args ) {
        $args['textarea_rows'] = 60;
        return $args;
    }
    

    If you’re not seeing any change to the height of the editor window, try putting the code in another file that you know is being loaded.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Edit Window Default Height’ is closed to new replies.