Tagged: Editor Size, Textarea Rows
- This topic has 2 replies, 2 voices, and was last updated 6 years, 2 months ago by
bubdev.
-
AuthorPosts
-
-
November 12, 2015 at 11:35 pm #4956
bubdevMemberHi 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 -
November 13, 2015 at 3:33 pm #4959
SteveKeymaster@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 ifeditor_heightis set, then it will be used instead oftextarea_rows.We’ll make sure this is removed from the next version of Piklist.
-
November 13, 2015 at 5:20 pm #4960
bubdevMemberGreat. 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
-
-
AuthorPosts
- The topic ‘Setting Textarea Rows’ is closed to new replies.