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.
Re: video youtube don't displayed after simple iintegration
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.