• While adding a four wp_editor objects to my options page, I am passing the following to the settings parameter:

    $defaults = array(
            'textarea_name' => 'foobar',
            'textarea_rows' => 20,
            'teeny' => true,
        );

    When the options are rendered, the size is still the default as 10 if it’s not visible on screen (option pages are sorted by tabs, using Redux). It doesn’t change to 20 until after I save changes or refresh the page. It’s almost as if if the wp_editor object is not visible, the textarea_rows setting is ignored. Everything else passes and sets as it should.

    Anyone heard of this, or knows if there is a workaround. I have check the rendering code in Redux. The correct value of 20 is being passed into wp_editor via the settings array, but again, it won’t render 20 rows until a refresh or save.

    Or, am I going crazy on redbull and hot pockets? ??

  • The topic ‘wp_editor and textarea_rows glitch’ is closed to new replies.