I'm happy to report that the YouTube embed feature now works properly. After a few hours of playing with some code, I've got it sorted out in a way that in order to embed a YouTube video, you just need to copy-paste the entire YouTube http address and use the 'youtube' code button at the top of the text editor.