Jak přidat tlačítko do HTML editoru


// Add buttons to html editor
add_action('admin_print_footer_scripts','eg_quicktags');
function eg_quicktags() {
?>
<script type="text/javascript" charset="utf-8">
/* Adding Quicktag buttons to the editor WordPress ver. 3.3 and above
* - Button HTML ID (required)
* - Button display, value="" attribute (required)
* - Opening Tag (required)
* - Closing Tag (required)
* - Access key, accesskey="" attribute for the button (optional)
* - Title, title="" attribute (optional)
* - Priority/position on bar, 1-9 = first, 11-19 = second, 21-29 = third, etc. (optional)
*/
QTags.addButton( 'eg_paragraph', 'p', '<p>', '</p>', 'p' );
QTags.addButton( 'eg_pre', 'pre','<pre lang="php">', '</pre>', 'q' );
</script>
<?php
}

Změna umístění pozice obsahového editoru nebo metaboxu v administraci

How to Move and Position The WordPress WYSIWYG Visual Editor
http://www.farinspace.com/move-and-position-wordpress-visual-editor/

Move excerpt meta box to above content editor
http://wordpress.stackexchange.com/questions/137571/move-excerpt-meta-box-to-above-content-editor

Move custom meta box above editor
http://wordpress.org/support/topic/move-custom-meta-box-above-editor

Rich text editor (Tiny MCE) pro popisky tagů. rubrik a dalších taxonomií

The Rich Text Tags – A TinyMCE Editor for Tags, Categories, and Taxonomies
http://wordpress.org/extend/plugins/rich-text-tags/

The Rich Text Tags Plugin allows you to edit tag descriptions, category descriptions, and taxonomy descriptions using WordPress‘ built in rich-text editor. Switch between WYSIWYG and HTML editing modes with the click of a link. Use the WordPress uploader to insert images from your computer or site’s Media Library.

Use the WordPress functions tag_description() and category_description() in your theme to show the descriptions. To learn how to show taxonomy descriptions, read more on the plugin page.
Features

– Edit term descriptions with WordPress’s built-in WYSIWYG editor
– Works with custom taxonomies (and custom post types, introduced in WP 3.0)
– Now supports user biography fields!