TinyMCE removes iframe attributes width and height

[*]

This took me ages to figure out but here is how it works now just add below code to the functions:

function tinyMCEoptions($initArray) {
    $options="*[*]";
    $initArray['valid_elements'] = $options;
    $initArray['extended_valid_elements'] = $options;
    return $initArray;
}
add_filter('tiny_mce_before_init', 'tinyMCEoptions');

[*]

Leave a Comment