Alternatively: Is there a way of modifying the whitelist implemented in HoboFields::HTMLSanitizer?
I have tried adding the following to config/environment.rb, but it does not seem to have any effect: config.action_view.sanitized_allowed_tags = 'iframe', 'gold' config.action_view.sanitized_allowed_attributes = 'src', 'width', 'height', 'frameborder' Thanks, Trond On Apr 18, 5:21 pm, lossius <[email protected]> wrote: > Hi, > > I would like to support iframes in a text field while using CKEditor. > If the model field is defined as ":html" CKEditor is working fine, but > iframe tags gets eaten by HoboFields::HTMLSanitizer as discussed in > this thread:http://tinyurl.com/3btqabo. > > If I change the field to :raw_html I am able to save iframe tags, but > the CKEditor toolbar is gone. It seems to me that the reason is that > the "html" attribute "textarea" HTML tag has been substituted for "raw- > html". > > Is there a way of making CKEditor work with raw-html as well? > > Thanks, > Trond -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
