Viewing 2 reply threads
  • Author
    Posts
    • #4956
      bubdev
      Member

      Hi Steve,

      I’ve just started using your amazing library. The one thing that doesn’t work for me is the textarea_rows option. The editor doesn’t change it’s size, regardless of the value I set. I’m wondering if this is a known issue or if there’s something wrong on my side.

      My codeblock look like this:

      piklist('field', array(
        'type' => 'editor'
        ,'field' => 'bub_biblio'
        ,'label' => __('XYZ')
        ,'options' => array (
          'media_buttons' => false
          ,'teeny' => true
          ,'textarea_rows' => 20
        )
      ));
      

      Thanks
      Stefan

    • #4959
      Steve
      Keymaster

      @bubdev– Welcome to the Piklist community!

      Congratulations! You found a small bug with our editor field. Luckily it’s easy to fix.

      1) Open this file in the Piklist plugins folder: piklist/parts/fields/editor.php. It should look like this >

      2) Remove this line: ,'editor_height' => 180, and save. You should be all set.

      The reason this happened is because Piklist set a default for editor_height. The codex for wp_editor states that if editor_height is set, then it will be used instead of textarea_rows.

      We’ll make sure this is removed from the next version of Piklist.

    • #4960
      bubdev
      Member

      Great. Thanks for the quick fix! I really enjoy taking piklist for a test drive on my current project, looking foward to do a lot more with it in the future.

      Cheers
      Stefan

Viewing 2 reply threads
  • The topic ‘Setting Textarea Rows’ is closed to new replies.