It looks like you're new here. If you want to get involved, click one of these buttons!
Hi,
Is there a way to allow the youtube iFrame tag from the ckeditor plugin? I've added https://ckeditor.com/cke4/addon/youtube to the ckeditor but everytime I try to save a page the iframe tag gets sanitized/purified/removed.
Thanks in advance.
Comments
Take a look at the fuel/application/config/purifier.php settings. By default, there should be a couple iframe specific rules that are commented out:
You may also need to add
iframe
toHTML.Allowed
Thanks for your reply,
I don't think it's the purifier. I've already disabled it completely and the iframe is still deleted.
This is my purifier.php
);
Can it be that it is in the regular sanitizer?
Oh... CKEditor will automatically remove iframes. You may have to use a MarkItUp field type instead.
Hi,
I've done everything to stop CKEditor remove the iframes. The iframe tags are in the post to the /fuel/pages/edit controller. I cannot figure out why the tags are still removed.
Is there a way to disable purifier and sanitzer completely? Just to check.
This is my editor.php
Is this field in the Pages module or your own Simple Module? If it's in your own Simple Module, you can try setting the sanitizing options like so:
In MY_fuel_modules.php
This has a little documentation on that option under the "Additional Configuration Parameters":
https://docs.getfuelcms.com/modules/simple
Youtube iframes can be used with CKEditor, the Youtube plugin and Purifier.
You need to use the latest Fuel version that has HTML5_Purifier support.
./config/editors.php
./config/purifier.php
Thanks @almostcompletely,
You're a livesaver.