You have to be in "Go Advanced" or full reply mode first (won't work in "Post Quick Reply"). Copy and paste the entire URL of the video from YouTube, then highlight the URL and click on the YouTube icon at the top right of the message box. It should bracket the URL with the code and then you should be able to post it.