Forum

Thread tagged as: Question

How do I create a field to insert iframe embed code?

I need a field to insert the multi-line html embed code supplied by video hosting providers such as Vimeo.

I assume I use the textarea field type. How do I prevent it from stripping out the html formatting (to make it post the code exactly as it is entered in the control panel field?

Or how do I add a CKEditor plugin like Media Embed?

kyle cadotte

kyle cadotte 0 points

  • 3 years ago
Simon Clay

Simon Clay 127 points

Hi Kyle,

You can use the Code Block template.

See perch/templates/content/code_block.html

Works perfectly. Just needed html="true" and editor="markitup". Thank you.

Simon Clay

Simon Clay 127 points

Great :)