From a668aa0fe92e65e7f2df096bd15c215fa5d7276d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 18 Dec 2007 20:46:09 +0000 Subject: [PATCH] Fix tinymce valid elements configuration. Props linusmartensson. fixes #3826 git-svn-id: https://develop.svn.wordpress.org/trunk@6405 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/tinymce/tiny_mce_config.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/js/tinymce/tiny_mce_config.php b/wp-includes/js/tinymce/tiny_mce_config.php index 22a194d417..983ea86ec5 100644 --- a/wp-includes/js/tinymce/tiny_mce_config.php +++ b/wp-includes/js/tinymce/tiny_mce_config.php @@ -22,8 +22,10 @@ } // 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); @@ -81,6 +83,7 @@ initArray = { button_tile_map : true, content_css : "", valid_elements : "", + invalid_elements : "", save_callback : 'TinyMCE_wordpressPlugin.saveCallback', imp_version : "",