Advanced WYSIWYG Editor
A plugin for WordPress 2.0 that adds more styling options to the WYSIWYG post editor.
Adds new buttons to the editor toolbar, including:
- Format selection: paragraph, formatted, headers, etc.
- Underline.
- Full justification.
- Anchor.
- Horizontal line.
- Copy, cut, paste.
- Insert table.
- Subscript, superscript.
- Foreground color, background color.
- Character map.
- Full screen editing.
Download advanced-wysiwyg.php into your wp-content/plugins directory, and activate the plugin. To add table controls and fullscreen editing, you must also add the TinyMCE plugins into wp-includes/js/tinymce/plugins. The default WordPress 2.0 installation does not include these plugins.
<?php /* Plugin Name: Advanced WYSIWYG Editor Plugin URI: http://www.labnotes.org/ Description: Adds more styling options to the WYSIWYG post editor. Version: 0.1 Author: Assaf Arkin Author URI: http://labnotes.org/ License: Creative Commons Attribution-ShareAlike Tags: wordpress tinymce */ if (isset($wp_version)) { add_filter("mce_plugins", "extended_editor_mce_plugins", 0); add_filter("mce_buttons", "extended_editor_mce_buttons", 0); } function extended_editor_mce_plugins($plugins) { array_push($plugins, "table", "fullscreen"); return $plugins; } function extended_editor_mce_buttons($buttons) { return array( "formatselect", "bold", "italic", "underline", "strikethrough", "separator", "bullist", "numlist", "indent", "outdent", "separator", "justifyleft", "justifycenter", "justifyright", "justifyfull", "separator", "link", "unlink", "anchor", "image", "hr", "separator", "cut", "copy", "paste", "undo", "redo", "separator", "table", "sub", "sup", "forecolor", "backcolor", "charmap", "separator", "code", "fullscreen", "wordpress", "wphelp"); } ?>
The code is available under the Creative Commons Attribution-ShareAlike.
Attachments
- advanced-wysiwyg.png (6.9 kB) - added by assafarkin on 12/26/05 06:57:03.
