{"id":125,"date":"2007-01-12T02:29:51","date_gmt":"2007-01-12T07:29:51","guid":{"rendered":"\/cgi\/wp\/?p=125"},"modified":"2007-01-28T10:53:17","modified_gmt":"2007-01-28T15:53:17","slug":"how-to-allow-video-embeds-in-wordpresss-html-editor","status":"publish","type":"post","link":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=125","title":{"rendered":"How To Allow Video Embeds In WordPress&#8217;s HTML Editor"},"content":{"rendered":"<p>My hosting company finally upgraded my WordPress version to 2.0.4 after I complained about the old version I was forced to use. This was important to me because I have done some work creating custom WordPress designs and I wanted to show off a fancy custom design on my blog. It also makes it easier to deal with all the spam comments this blog receives.<\/p>\n<p>WordPress has an HTML editor called TinyMCE which does not allow you to embed videos. The embed tag is not allowed in the HTML but you can edit a file to change that. Find the file <font face=\"Arial\"><strong>tiny_mce.js<\/strong> in the directory <strong>wordpress\/wp-includes\/js\/tinymce\/<\/strong>. Edit line 101 which reads:<\/font><\/p>\n<p><code>this.defParam(\"extended_valid_elements\", \"\");<\/code><\/p>\n<p>Change it to read:<\/p>\n<p><code>this.defParam(\"extended_valid_elements\",\"embed[style|id|type|src]\");<\/code><\/p>\n<p>After you save that file you should be able to paste video embed code into the WordPress rich editor, TinyMCE. Please note that you should only use the <strong>embed<\/strong> tag and leave out the surrounding <strong>object<\/strong> tag.<\/p>\n<p><a href=\"http:\/\/wiki.moxiecode.com\/index.php\/TinyMCE:Configuration\/extended_valid_elements\">http:\/\/wiki.moxiecode.com\/index.php\/TinyMCE:Configuration\/extended_valid_elements<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>My hosting company finally upgraded my WordPress version to 2.0.4 after I complained about the old version I was forced to use. This was important to me because I have done some work creating custom WordPress designs and I wanted &hellip; <a href=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=125\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/125"}],"collection":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=125"}],"version-history":[{"count":0,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/125\/revisions"}],"wp:attachment":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}