Auto-resize when writing with Custom post WP editor

Finally I got around this. You need to modify tinymce args passed to wp_editor function. WordPress have a argument wp_autoresize_on to allow the editor to be resized automatically. So instead of these: ‘tinymce’ => array( ‘toolbar1’=> ‘bold,italic,underline,link,unlink,forecolor’, ‘toolbar2’ => ”, ‘toolbar3’ => ” ) you need to use this: ‘tinymce’ => array( ‘autoresize_min_height’ => 100, … Read more

How to remove the “Path” line in the WordPress Editor for end users who are submitting a form?

This is how the tinymce statusbar displays on my intsall: <div id=”mceu_34″ class=”mce-statusbar mce-container mce-panel mce-stack-layout-item mce-last” hidefocus=”1″ tabindex=”-1″ role=”group”> <div id=”mceu_34-body” class=”mce-container-body mce-flow-layout”> <div id=”mceu_35″ class=”mce-path mce-flow-layout-item mce-first mce-last”> <div role=”button” class=”mce-path-item” data-index=”0″ tabindex=”-1″ id=”mceu_35-0″ aria-level=”0″>p</div> <div class=”mce-divider” aria-hidden=”true”> ยป </div> <div role=”button” class=”mce-path-item mce-last” data-index=”1″ tabindex=”-1″ id=”mceu_35-1″ aria-level=”1″>strong</div> </div> </div> </div> so this … Read more

WP Editor strips input placeholder attribute

The list of allowed elements and attributes is stored in the global variable $allowedposttags which is set in wp-includes/kses.php. To override it create a simple mu plugin with the following content: <?php # -*- coding: utf-8 -*- /** * Plugin Name: Enable placeholder attribute for input elements in post tags. * Version: 2012.07.18 */ add_action( … Read more