mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Pluggable tinyMCE init. fixes #2080
git-svn-id: http://svn.automattic.com/wordpress/trunk@3312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fd28b6f640
commit
3a51b35f25
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user