Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-04-02 23:25:36

alivato
Member
Registered: 2011-03-31
Posts: 151

hak_tinymce & iframe

Hi.
My English is very poor, sorry.

Article added using plug-hak_tinymce.
Question
If I want to add an article clip from youtube, how to do this?

http://www.youtube.com/watch?v=_OBlgSz8sSM

?

{Edited title to make it match its contents. – Uli}

Last edited by uli (2013-01-22 17:02:03)

Offline

#2 2011-04-03 02:33:58

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: hak_tinymce & iframe

In YouTube, below the video, you can select a HTML-snippet to embed the video in your site.

Offline

#3 2011-04-03 03:32:14

alivato
Member
Registered: 2011-03-31
Posts: 151

Re: hak_tinymce & iframe

yes, but only with html button and old code <object width=“560” heig~

Offline

#4 2013-01-21 16:33:24

alivato
Member
Registered: 2011-03-31
Posts: 151

Re: hak_tinymce & iframe

?

Offline

#5 2013-01-21 16:58:49

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: hak_tinymce & iframe

It’s very simple. Replace the part {videonumber} with the number of your video, also customize the width and height.

<iframe width="480" height="360" src="http://www.youtube.com/embed/{videonumber}?rel=0" frameborder="0" allowfullscreen></iframe>

You can also combine this with a custom field or create a macro with smd_macro.

Offline

#6 2013-01-21 22:56:46

alivato
Member
Registered: 2011-03-31
Posts: 151

Re: hak_tinymce & iframe

After copying the iframe is not saved.

?

Offline

#7 2013-01-22 01:45:43

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: hak_tinymce & iframe

Sorry, I had ignored that you use the hak_tinymce plugin. I don’t know how to deal with it and I can not understand why this plugin is required. Without this plugin the things are simpler and cleaner.

Offline

#8 2013-01-22 09:54:02

alivato
Member
Registered: 2011-03-31
Posts: 151

Re: hak_tinymce & iframe

The issue will soon be a year. And the answer is no. : (

Offline

#9 2013-01-22 11:25:54

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: hak_tinymce & iframe

Haven’t tried, but it seems more a tinymce issue thant txp. Googling i found those:

TinyMCE is stripping out iframe, so you need to extend valid elements to avoid this

Also, another, maybe easier way: a youtube plugin for TinyMce.

Does any of those help?

Offline

#10 2013-01-22 16:48:45

alivato
Member
Registered: 2011-03-31
Posts: 151

Re: hak_tinymce & iframe

Thank you Zanza it works.

,iframe[src|title|width|height|allowfullscreen|frameborder]

Last edited by alivato (2013-01-22 16:50:18)

Offline

Board footer

Powered by FluxBB