Pluggable tinyMCE init. fixes #2080

git-svn-id: https://develop.svn.wordpress.org/trunk@3312 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-12-15 21:42:38 +00:00
parent 7321cfa5a1
commit b1d79fd8f7
1 changed files with 10 additions and 2 deletions

View File

@ -119,7 +119,8 @@
$mce_browsers = apply_filters('mce_browsers', array('msie', 'gecko', 'opera'));
$mce_browsers = implode($mce_browsers, ',');
?>
tinyMCE.init({
initArray = {
mode : "specific_textareas",
textarea_trigger : "title",
width : "100%",
@ -145,5 +146,12 @@ tinyMCE.init({
valid_elements : "<?php echo $valid_elements; ?>",
<?php do_action('mce_options'); ?>
plugins : "<?php echo $plugins; ?>"
});
};
<?php
// For people who really REALLY know what they're doing with TinyMCE
do_action('tinymce_before_init');
?>
tinyMCE.init(initArray);