Ralph — same problem
They are using tiny mce as the html editor, it has a config file found in wp-admin/js/edit.js
i havent the full answer right now but tiny mce may be where the answer lies. (the receiving post.php page doesnt strip tags by the looks of it so it has to be the javascript part of the html editor itself wp-admin/post.php.
I know Tiny mce can enble / disable certain tags and ignore/delete others, so we need to edit the ‘allowed list’ so its not stripped, a similar list dictates what html gui icons show in your gui edit panel for things like add link, bold, add table etc … so this problem is all about indentyfing which one edit and add the param and embed tags to!
There is much help on tinymce
example area of interest in edit.js
29)// Pretty it up for the source editor
30) var blocklist1 = ‘blockquote|ul|ol|li|table|thead|tbody|tr|th|td|div|h[1-6]|pre|p’;
its such pipe seperated tag lists that enable/disable features showing or working, i added object|embed to the above but it didnt help.
i tried removing the if wrapper on lines 55-58 like shown as it mentions the embed/object tags but it didnt help so i’m stumped, if you get the answer pls post it back for all to see!
to work around i just put the http:youtube/etc/v=GHF776 text in the post and walk the dom with javascript looking for a matching pattern on the page and extract the v=value and wrap it in a piece of embed code!
document.write(“<object name=movie value=v><embed>stuff</embed></object>”)
not a good solution but works for me.
// if ( content.indexOf(‘<object’) != -1 ) {
content = content.replace(new RegExp(‘\\s*<param([^>]*)>\\s*’, ‘mg’), “<param$1>”);
content = content.replace(new RegExp(‘\\s*</embed>\\s*’, ‘mg’), ‘</embed>’);
//}
I also added the tag names onto the 2 blocklists at line 30 and 159 like shown but again no change.
var blocklist1 = ‘blockquote|ul|ol|li|table|thead|tbody|tr|th|td|div|h[1-6]|pre|p|embed|object’;
var blocklist = ‘table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6]|embed|object’;