• 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>

    https://www.ads-software.com/extend/plugins/wysiwyg-text-widget/

Viewing 1 replies (of 1 total)
  • Thanks, although I had to insert it one line above – #61, so that it gets added before the PHP code.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WYSIWYG Text Widget] Quick Update/Hack’ is closed to new replies.