Hi,
i have integrate youtube plugin in CKEditor 3.6.6 with the buttin in toolbar, but i can't display video with, t have juste a square within "Iframe" as the picture
i triyed lot of youtube plugin, and lot of things for 5 days later but don't find solution, if someone hace an idea please
Sat, 05/26/2012 - 16:50
#1
Re: video youtube don't displayed after simple iintegration
This is simply the way CKEditor shows an iframe element in the WYSIWYG mode. Use the Preview feature to view the final version of the document, as described here:
http://docs.cksource.com/CKEditor_3.x/U ... ng_IFrames
http://docs.cksource.com/CKEditor_3.x/U ... nt/Preview
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Try this trick afrer CKEditor
Try this trick afrer CKEditor init:
CKEDITOR.on('instanceReady', function() {
var CKEIframes = jQuery('.cke_iframe', window.frames[0].document);
var CKEIframesL = CKEIframes.length;
for (i=0;i<CKEIframesL;i++) { jQuery(CKEIframes[i]).replaceWith(decodeURIComponent(jQuery(CKEIframes[i]).data('cke-realelement'))); }
});
"cke_iframe" is a class for image elements with red "Iframe" title, "cke-realelement" is a data parameter with uri encoded html description of a real iframe element.