There are two parameters that you can use to change the size of the text editor generated with wp_editor()
, here there are:
$settings = array(
'editor_height' => 425, // In pixels, takes precedence and has no default value
'textarea_rows' => 20, // Has no visible effect if editor_height is set, default is 20
);
- If
editor_height
is provided, its raw value will be used - Otherwise
textarea_rows
(or it’s default value of 20) will be used to calculate the matching height in pixels
Good to know:
Here are a few examples of the result of the conversion from textarea_rows
to pixels (this is done on the client side):
- 0 to 3 => 100
- 4 => 113
- 5 => 133
- 10 => 230
- 15 => 328
- 20 => 425
- …
Related Posts:
- wp_editor textarea value not updating
- Sanitize content from wp_editor
- Show Font Awesome Icons In WP Post Editor
- ‘Add Media’ button doesn’t work when editor is initialized from javascript
- Why are there two diffrent full screen editors?
- Shortcode attribute escaping
- wp_editor not adding paragraphs despite wpautop being set to true
- WP Editor strips input placeholder attribute
- How to remove the “Path” line in the WordPress Editor for end users who are submitting a form?
- Remove specific buttons from wp_editor()
- WP Editor does not Initialize Correctly When Form Elements are Removed from the DOM
- Auto-resize when writing with Custom post WP editor
- TinyMCE strips line breaks on mceAddControl
- Changing the default WP editor font and size
- WP_Editor – Setting render location on page
- How to pass the wp_editor content using jquery
- How do I prevent the wp_editor from loading outside container?
- Convert this textarea to rich html format via wp_editor
- Gutenberg – Custom blocks not working as expected?
- Quotes being escaped inside wp_editor when saved with wp_kses_post
- Save wp_editor() content as option
- Stop WordPress Visual Editor converting backticks into code blocks
- Change the name of the wp_editor tab “html/text”
- Updating post content on the front end
- Target wp_editor buttons to add a tooltip
- Using default wordcount javascript in WordPress on custom wp_editor() areas
- wpautop is not working when displaying content saved using wp_editor in a custom meta box
- Removing line breaks when in text view with wp_editor
- How to add custom button in wp_editor
- Edit Page blank
- how to set max-length at the wp_editor
- How to Add TinyMCE to widget
- Like to convert textarea into using wp_editor
- How to dynamically generate wordpress editor on frontend?
- Add default page editor to an admin settings page
- Can I use wp_editor() to create a second instance of the editor in my post page?
- How would I load wp_editor someehere else other than the admin area?
- wp.editor.initialize not working as expected
- wp_editor in text mode only(without TinyMCE)
- wp-editor is empty on first submit
- How WordPress remembers which active editing modes are used?
- how to display wp_editor in a page
- wp editor formatting
- wp_editor visual tab in meta box doesn’t show content
- Stop editor from adding “amp;” after every “&”
- wp_editor doesn’t save styling
- How to use wordpress text editor in php page
- Pull Youtube Link from 2nd WP_Editor
- textarea_name is not working with wp_editor
- How Can i print the wp_editor field content?
- How to add set featured image button in wp_editor()?
- WP_editor problem
- Dynamic WordPress editor in meta box
- Displaying content on the website frontend that was uploaded using wp_editor?
- Free Alternate WordPress Editor (without requiring plugins)
- Strange formatting issue in text editor after WP update from 4.9.3 to 5.3.1
- Bold button gets unchecked on enter click when bullet button is also selected in WP Editor
- How can I apply preventDefault() to the click on CodeMirror-hints?
- WordPress editor issues
- automatically apply clear formating when pasting text on editor
- WordPress textual editor problem with new line
- Use ENTER, not SHIFT+ENTER to Insert Line Break in WP editor
- How to replace textarea in plugin with wp_editor
- Is there a way to install a drop-down with all site pages in WP-Editor?
- wp_editor returning invalid html
- Adding text above the editor
- Embed and word Count not working for wp_editor instance
- How to make this clean?
- wp_editor saving to database, but not displaying content on refresh
- How to stop wp-editor() overwriting my HTML?
- Save values from foreach loop in wp_editor
- ThinkTanking for design [closed]
- Wp_editor bug with foreach()?
- Convert textarea into TinyMCE
- load wp_editor without wp_footer
- How can I open WP rich editor within colorbox in the front end?
- How to use wp_editor(); in functions.php then retrieve content in the template
- front post submit using wp_editor
- Why am I not able to save / update data in wp_editor?
- Replacing a textarea in post meta with wp_editor() WordPress
- How can I improve the line break handling in the WYSIWYG editor?
- TinyMCE 4.x : How to customize toolbar on wp_editor()
- wp_editor doesn’t work in front end area
- Using multiple instances of wp_editor in Custom Post Type admin area
- Saving and displaying content on front end with wp_editor
- Adding multiple WYSIWYG editors to custom post type
- wp_editor and WPAlchemy messes up tags when updating
- Add TinyMCE to CPT metaboxes in 3.1?
- Is there a filter for editor-style.css file?
- WP Editor Issue in Backend
- More than one TinyMCE (wp_editor) with different $settings[‘drag_drop_upload’] values breaks
- Editor’s role in WP
- How to paste into WordPress editor without changing existing formatting in editor?
- Uncaught TypeError: switchEditors.switchto is not a function
- Make wp_editor required
- How do I render content from a wp_editor in a plugin setting field?
- See double taxonomy inputs in WP editor
- How do I embed an image at actual size?
- How to output cmb2 wysiwyg by using timber
- How to enable on custom shortcodes