• Resolved Lars Henriksen

    (@adjunkten)


    Hi there and thank you for this plugin.

    Is it possible to get a much bigger content window (marked with red frame below), when you click ‘edit’.
    My users have trouble finding the lower right arrow to enlarge the window.

    sk?rmbillede

    I would also like to add some color and css to the ‘save’ button.

    I have tried to tinker with the css, but I can’t seem to find the correct parameters..?

    Thanks, Lars

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

    (@dcavins)

    Hi Lars-

    You can modify the “save” button via css like this:

    #doc-edit-submit {
      background color: #FAB;
      padding: 1.5em;
    }

    The editor window is a little different because it’s built using the WP Editor, TinyMCE. I look at how BP Docs calls it
    https://github.com/boonebgorges/buddypress-docs/blob/master/includes/templates/docs/single/edit.php#L59
    and see that there’s a filter, so it’s possible to add a new wp_editor argument, like

    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;
    }

    But, BuddyPress’s CSS has a rule that limits text area heights based on the selector string #buddypress .standard-form textarea, so you’ll have to override that, like

    #buddypress .standard-form #doc_content { 
        height: auto; 
    }

    .

    Making those changes works for me, but you may have to do other things depending on what theme you’re using.

    Thread Starter Lars Henriksen

    (@adjunkten)

    Hi David,

    I added your standard-form css and nothing else – and that made my content area fit the screen better, thanks!

    Best, Lars

    Plugin Author David Cavins

    (@dcavins)

    Cool! Thanks for letting me know.

    -David

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Enlarge default edit view and ‘save’ button’ is closed to new replies.