by
KK » Wed Mar 09, 2011 7:17 pm
Hi,
By default, Couch as a security measure neutralizes all potentially dangerous tags (like 'object', 'script', 'iframe') etc.
This is the reason why one cannot use Youtube video embed code directly from within the wysiwyg CKeditor.
We are working on ways to allow this in a safe manner (perhaps by allowing something like Wordpress short-tags within contents).
For now, as a work around, you could try the following method -
Create a separate editable region of type textarea and set its 'no_xss_check' parameter to '1'.
- Code: Select all
<cms:editable name='video' type='textarea' no_xss_check='1' />
Enter the Youtube embed code within this textarea.
The setting of 'no_xss_check' parameter to '1' will cause Couch to leave all contents entered untouched.
This 'video' custom field can now be used anywhere in your template in the regular manner
- Code: Select all
<cms:show video />