trsteel88 / TrsteelCkeditorBundle

Symfony2 bundle for easy integration of the CKEditor WYSIWYG
97 stars 58 forks source link

iframe #85

Closed m0rdreck closed 9 years ago

m0rdreck commented 9 years ago

Hello,

Wen i add iframe in ckeditor he delete on validation ?

how to allow iframe ?

thank

m0rdreck commented 9 years ago

i use https://github.com/frozeman/MediaEmbed/blob/master/mediaembed/plugin.js

trsteel88 commented 9 years ago

See #80 - You need to allow iframes in the html purifier config

eg:

trsteel_ckeditor:
    extra_allowed_content: iframe[*]
    html_purifier:
        config:
            HTML.SafeIframe: true
            URI.SafeIframeRegexp: '%%^(https?:)?//(www\.youtube(?:-nocookie)?\.com/embed/|player\.vimeo\.com/video/)%%'