WymEditor & Flash

There is a problem with WymEditor that it doesn’t allow you to copy and paste HTML code from YouTube to paste videos (or any other Flash HTML).

Some people tried to make the work-around work and to some success. Problems included missing alt tags, messed up code in general.

Well, I figured it out how to get it working (symantically correct as well!) and I’m posting steps to reproduce it in your version and also a link to download my version of the code that works straight away.

Step 1.

Search for “_tags” (without quotes) in your “jquery.wymeditor.js” file.

Step 2

Scroll until you find “param” and replace it with this http://paste2.org/p/388651

Step 3

Search for “this.block_tags” and make sure “object” is in the array. Make sure “embed” and “param” are NOT in this array.

Step 4

Just below find “this.inline_tags” then add “param” and “embed” to this array. Make sure “embed” is NOT is this array.

Complete! Try embedding a YouTube video, it works fine!

Couldn’t be bothered to use that guide or didn’t work for you? Download the files that work for me (version 0.5 rc 1). Questions? Comments? Email me at meridimus [@] gmail [.] com