HTML widget in Blog Post widget

Hi,

I am trying to embed some YouTube videos in my blog post and I notice the blog post widget is escaping ‘&’ to ‘&’ in the iframe src attribute. This cause problems as I am not able to pass variables to YouTube. In a normal page I can resolve the problem by converting the RichText Widget to HTML widget, but I am not able to do it to the Blog Post widget. Do you have a solution for this issue?

Zhao,

This issue was resolved in Version 4.1. What version are you currently running on? 

We are running on 4.2.4

I’ll look into it. It may be that we fixed it in Rich Text, but not blog. You can use the old embed code that YouTube provides. The format looks similar to the following:

<object width="560" height="315"><param name="movie" value="//www.youtube.com/v/dtTWC35jCmM?hl=en_US&amp;version=3">
<param name="allowFullScreen" value="true">
<param name="allowscriptaccess" value="always">
<embed src="//www.youtube.com/v/dtTWC35jCmM?hl=en_US&amp;version=3" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>   

I’m afraid that’s not an option for us. We need to use iframe version of embedded code to pass the ‘html5=1’ variable in order to use the html5 video player.

Understood; however, that’s the only option in the product as it exists currently. We’ll log a defect and add it to the backlog to be addressed in a future release. 

@dan - on TinyMCE demo website (http://www.tinymce.com/tryit/basic.php), I was wondering why CM1 does not have “Insert video” option? Thank you

There are a couple reasons. 1. We don’t recommend that people store their videos in CM1. Publishing videos is a bandwidth intensive effort and would be undue overhead and cost each time the website is published. It is recommended to store videos in services such as Wistia, YouTube or Brightcove and simply include the embed code in Percussion.  2. If people want to store videos in CM1, we do not have an asset type called video. Videos are stored just like any other file asset.  

I understand what you mean by that. That makes sense.

It is my understanding that TinyMCE allows to give you (Percussion’s engineers) control what to include and what not to include. To make it easier, how about including “insert video” dropdown menu and then when popup appear (see attached), simply hide “General” tab and just show “embed” tab.

When I did that, it worked just fine, same behavior as source code from Tools but easier for people who have no HTML knowledge when it comes to “embedding”.

Just FYI. The Rich Text Editor seems to escape the ‘&’ as well.