Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
[SOLVED: solution on the end]
I'm struggling with this a bit.

I created a textarea to insert some embed code from issuu.
If I trigger the output however, it seems like couch did some translation on its output after saving.

original embed code
Code: Select all
<div data-configid="10042986/5790219" style="width: 525px; height: 372px;" class="issuuembed"></div><script type="text/javascript" src="//e.issuu.com/embed.js" async="true"></script>


output via couch
Code: Select all
<div data-configid="10042986/5790219" style="width: 525px; height: 372px;" class="issuuembed"></div>&lt;script type=&quot;text/jaxxxvascxxxript&quot; src=&quot;//e.issuu.com/embed.js&quot; async=&quot;true&quot;&gt;&lt;/script&gt;


I thought I saw an entry requesting something alike concerning ckeditor on the forums, but can't seem to find the thread again.

ps: tried via "richtext" as well, with the "source" button. It ends up with the same output.
solution:

declaration
Code: Select all
<cms:editable name='code' 
       label='code'
       desc='put the code here'
       type='textarea'
       height='150'
       no_xss_check='1'
    />


triggering
Code: Select all
<cms:embed code="<cms:show code />"/>


more info here: http://www.couchcms.com/docs/tags-reference/embed.html
2 posts Page 1 of 1