Forums

[Plugin: WYSIWYG Text Widget] Quick Update/Hack (2 posts)

  1. McBastard
    Member
    Posted 6 months ago #

    I added the following JS in order for the Visual Tab to show up on load by default. It also formats the HTML textarea to be 100% across instead of 50%.

    Add the following at line 62. (after the HTML in the widget_wys_text_control function)

    <script type="text/javascript">
    	jQuery(document).ready(function(){
    	if(jQuery('#edButtonPreview')){
    		switchEditors.go('wys-text-text-<?php echo $number; ?>', 'tinymce');
    }
    	jQuery('#wys-text-text-<?php echo $number; ?>').css('width', '100%');
    })
    </script>

    http://wordpress.org/extend/plugins/wysiwyg-text-widget/

  2. karl19
    Member
    Posted 6 months ago #

    Thanks, although I had to insert it one line above - #61, so that it gets added before the PHP code.

Reply

You must log in to post.

About this Topic