Fix tinymce valid elements configuration. Props linusmartensson. fixes #3826
git-svn-id: https://develop.svn.wordpress.org/trunk@6405 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7ca479d4c1
commit
a668aa0fe9
|
@ -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