Fix tinymce valid elements configuration. Props linusmartensson. fixes #3826
git-svn-id: http://svn.automattic.com/wordpress/trunk@6405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b7f907b875
commit
f97604713a
|
@ -22,9 +22,11 @@
|
|||
}
|
||||
|
||||
// Set up init variables
|
||||
$valid_elements = 'p/-div[*],-strong/-b[*],-em/-i[*],-font[*],-ul[*],-ol[*],-li[*],*[*]';
|
||||
$valid_elements = '*[*]';
|
||||
$valid_elements = apply_filters('mce_valid_elements', $valid_elements);
|
||||
|
||||
$invalid_elements = apply_filters('mce_invalid_elements', '');
|
||||
|
||||
$plugins = array('inlinepopups', 'autosave', 'spellchecker', 'paste', 'wordpress');
|
||||
$plugins = apply_filters('mce_plugins', $plugins);
|
||||
$plugins = implode($plugins, ',');
|
||||
|
@ -81,6 +83,7 @@ initArray = {
|
|||
button_tile_map : true,
|
||||
content_css : "<?php echo $mce_css; ?>",
|
||||
valid_elements : "<?php echo $valid_elements; ?>",
|
||||
invalid_elements : "<?php echo $invalid_elements; ?>",
|
||||
save_callback : 'TinyMCE_wordpressPlugin.saveCallback',
|
||||
imp_version : "<?php echo intval($_GET['ver']); ?>",
|
||||
<?php do_action('mce_options'); ?>
|
||||
|
|
Loading…
Reference in New Issue