Форуми / Cotonti / General / YouTube CKEditor Plugin

Twiebie
#1 12.10.2011 12:20

I've found a good YouTube embed plugin for CKEditor.

http://riseofthephx.com/2010/10/13/adding-vimeoyoutube-iframe-embed-to-ckeditor/

Thought i'd share it yes

lukgoh
#2 06.11.2011 21:40

Thanks Twiebie, how do you install it though? I added the folder to the CKEditors plugins folder and updated the CKEditor plugin with no success. 

Twiebie
#3 06.11.2011 22:16

That should be it really.

Mind you that it's case sensitive!

Fox
#4 07.11.2011 09:12

Thank you! It would be usefulyes

ХаЧу ЧПУ для форума!!! ХаЧу ДаКуменцию к ДвИжКу!!! ХаЧу АпиСания TPL ТаГов!??
lukgoh
#5 07.11.2011 11:53

['Image','Flash','youtube','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe'], - doesn't do anything :s

Twiebie
#6 07.11.2011 14:07

Have you also included this at the bottom of your config.js file?

	config.extraPlugins = 'youtube';

lukgoh
#7 07.11.2011 15:02

Just added it. Didn't do anything...

Twiebie
#8 07.11.2011 15:21

Try this in config.js:

['Image','Flash','Youtube','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe'],

And make sure this is at the bottom:

config.extraPlugins = 'youtube';
lukgoh
#9 07.11.2011 18:53

 

Thanks Twiebie I accidently had the 
1
config.extraPlugins = 'youtube';
 outside of the closing tag, I was just being an idiot. New problem though, after inputting the youtube video and clicking submit, it simply removes it, leaving only the text I have typed out... Any ideas?
Twiebie
#10 07.11.2011 19:53

Does it create a div or anything, or just simply nothing?

lukgoh
#11 07.11.2011 21:24

When I first add the Youtube video it shows a white box in CKEditor with a red Iframe box, then after clicking publish it shows nothing but the empty paragraph tags from where I was making space for the text...

pieter
#12 03.10.2012 13:42

Was there a solution, because I have the same issue. 

Also if I add manually the iframe to the code.

... can we help you ...
Twiebie
#13 03.10.2012 16:05

Is it maybe because of the HTML purifier plugin?

pieter
#14 03.10.2012 17:13

yes it is, I paused it, and problem solved

Added 12 minutes later:

Is it safe to disable it?

... can we help you ...

Відредаговано: pieter (03.10.2012 17:25, 11 років тому)
Trustmaster
#15 03.10.2012 19:08

It isn't safe to disable htmlpurifier. Please read this and have a look into plugins/htmlpurifier/presets folder.

May the Source be with you!