Forum

Thread tagged as: Question

Inserting iframe or video into a textile enabled text area

Is it possible to drop an iframe with a google map or say a youtube video into a text area with textile="true" and editor="markitup"?

It's something I've never had cause to do previously.

Thanks.

John Robinson

John Robinson 7 points

  • 7 years ago

Forget that. All sorted.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, great.

How did you do it, please?

Hi Chris,

You just have to add html="true" into your text area template:

<perch:content id="text" type="textarea" label="Text" textile="true" editor="markitup" imagewidth="640" imageheight="480" html="true" />

Then you can just drop snippets of html straight into it.

John.

Hi,

I'm trying to do this in the blog app using in the post.html template:

<perch:blog id="postDescHTML" type="textarea" label="Post" order="2" editor="markitup" markdown="true" size="xxl autowidth" required="true" html="true" />

and in the blog post itself:

<iframe src="https://www.someurl.com"></iframe>

However its just coming through as a 404 error when I post. Probably something obvious I'm missing...

Jon

Worked after I removed all quotation marks for some reason.