Viewing 5 replies - 1 through 5 (of 5 total)
  • The resize has only ever been avaiable under Visual mode, it’s never been shown whilst in HTML mode as long as i can remember.

    NOTE: Users of Firefox won’t have to worry about this as of version 4.0(of Firefox), a native resize option will be provided in the browser on any textarea shown on a webpage(it won’t persist, but it’s convenient nonetheless).

    Thread Starter Daniel Watrous

    (@dwatrous)

    Mark,

    You’re right. I have to laugh at myself a little for not noticing that.

    I use chrome which allows resize of native textarea, but like you mentioned, it doesn’t persist.

    You can always just add some CSS via hook to increase the textarea size if you want to…

    add_action('admin_print_styles-edit.php','increase_textarea_css');
    add_action('admin_print_styles-post-new.php','increase_textarea_css');
    
    function increase_textarea_css() {
    	?>
    	<style type="text/css">
    	textarea#content { height:600px!important; }
    	</style>
    	<?php
    }
    Nelu

    (@johnyisgood)

    Mark,
    Thanks for posting this solution.

    Is there a way of applying this only to a specific post type?

    Nelu

    (@johnyisgood)

    Nevermind.

    I figured it out:

    add_action('admin_print_styles-edit.php','increase_textarea_css');
    add_action('admin_print_styles-post-new.php','increase_textarea_css');
    
    function increase_textarea_css() {
    	?>
    	<style type="text/css">
    	<?php if (($_GET['post_type'] == 'my_custom_post_type') || ($post_type == 'my_custom_post_type')) : ?>
    	textarea#content { height:600px!important; }
    	<?php endif; ?>
    	</style>
    	<?php
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't resize visual/html editor’ is closed to new replies.