Remove TinyMCE valid elements tweaks (no longer necessary)

This commit is contained in:
Ben Word
2013-05-24 12:58:49 -05:00
parent 01617bb077
commit 5fd83abb5d
2 changed files with 1 additions and 16 deletions

View File

@@ -1,4 +1,5 @@
### HEAD
* Remove TinyMCE valid elements tweaks (no longer necessary)
* Remove additional widget classes
* Move `/assets/css/less/` to `/assets/less/`
* Add wrapper templates filter

View File

@@ -379,22 +379,6 @@ function roots_remove_default_description($bloginfo) {
}
add_filter('get_bloginfo_rss', 'roots_remove_default_description');
/**
* Allow more tags in TinyMCE including <iframe> and <script>
*/
function roots_change_mce_options($options) {
$ext = 'pre[id|name|class|style],iframe[align|longdesc|name|width|height|frameborder|scrolling|marginheight|marginwidth|src],script[charset|defer|language|src|type]';
if (isset($initArray['extended_valid_elements'])) {
$options['extended_valid_elements'] .= ',' . $ext;
} else {
$options['extended_valid_elements'] = $ext;
}
return $options;
}
add_filter('tiny_mce_before_init', 'roots_change_mce_options');
/**
* Redirects search results from /?s=query to /search/query/, converts %20 to +
*