Problems, need help? Have a tip or advice? Post it here.
7 posts Page 1 of 1
Hi All, I am working with youtube video
when I give full path "https://www.youtube.com/embed/eqJ9goTIpN4" its working fine..
Code: Select all
<iframe width="720" height="480" src="https://www.youtube.com/embed/eqJ9goTIpN4" frameborder="0" allowfullscreen></iframe>


But When I Use
Code: Select all
<cms:editable name='videolink'  label='Upload Videos Gallery'   type='text' no_xss_check='1' />


and
Code: Select all
<iframe width="720" height="480" src="<cms:show videolink />" frameborder="0" allowfullscreen></iframe>


Its not dispalying . Why?


Subhamoy
Hi Subhamoy,

Only the editable region of type 'textarea' supports the 'no_xss_check' parameter needed for inputting raw code.

Please modify your definition to convert the 'text' to textarea' (also don't forget to delete the existing contents from within it and save before entering the code afresh).

Hope it helps.
Thanks KK
Just jumping in here, because I am currently facing a similar problem.

I am having a richtext field for the content section of a news area, in which I would like to embed videos from YouTube/Vimeo.

The working HTML would be, for example, like this:

Code: Select all
<div class="flex-video widescreen vimeo">
<iframe src="https://player.vimeo.com/video/16716097?color=ff9933&title=0&byline=0&portrait=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>


Couch literally outputs the code directly on the page:

<iframe src="https://player.vimeo.com/video/16716097?color=ff9933&title=0&byline=0&portrait=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

As you pointed out, no_xss_check is only working for textarea fields, which is not an option in this case as the videos need to be embedded flexibly througout the text.

Is there really no way to embed videos in richtext fields or set an exception for <iframe>?
Shortcodes should be satisfactory in this case @JD, see docs/miscellaneous/shortcodes.html and viewtopic.php?f=8&t=6956.
@JD You might also like using an all-purpose shortcode for embedding different types of code into richtext areas.

viewtopic.php?f=8&t=7950
Great. Will check that out. Thanks.
7 posts Page 1 of 1