My iframe code below will get replaced with a non breaking space when I paste it into the source of the editor.
<iframe frameborder="0" width="512" height="330" scrollable="no" src="http://www.c-span.org/video/standalone/?c3344448/first-speech-house" style="overflow:hidden; width:512px; height:330px;"></iframe>
Steps to reproduce:
- Use the demo editor at http://ckeditor.com/demo
- Click the source button
- Paste in iframe code above
- Click the source button
- If you click the source button again to edit something the iframe code you pasted will be replaced with a non breaking space.
This is because you are
This is because you are trying to paste an <iframe> element into an editor instance that is not configured to support iframes.
Try the Full version and you will see that your iframe is there.
This is thanks to the feature called Advanced Content Filter which only allows the content that a CKEditor instance supports. The Standard version, for example, does not have the IFrame plugin, so all iframes will be removed from editor content unless you specifically whitelist them.
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!
Anna,
Anna,
Thank you so much for your response! I didn't realize I had to enable that, I thought it was funny that youtube embedding (done via iframe) worked fine but not any other iframe code.