<?php

/*
Plugin Name: Visual editor wysiwyg styles
Description: Applies current WP theme styles to the visual editor, so it looks like your site. Requires WordPress 2.5.
Author: Sam
Version: 0.1

=== Plugin Name ===
Tags: edit, editor, visual editor, tinymce, wysiwyg, css, content_css
Requires at least: 2.5
Tested up to: 2.5

== Installation ==

You may have to refresh/force-refresh/super-refresh the Post editing panel to see the new styles.

== Usage ==

See http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/content_css#TinyMCE_specific_rules

e.g.,

body.mceContentBody {
	
}

*/

// http://codex.wordpress.org/Migrating_Plugins_and_Themes#TinyMCE_Upgrade_to_Version_3
add_filter('tiny_mce_before_init', 'ews_init_options');

function ews_init_options($initOptions) {
	// http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/content_css
	// "This option can also be a comma separated list of URLs."
	$initOptions['content_css'] = get_stylesheet_uri();
	return $initOptions;
}