Iframes and the WYSIWYG editor

The current release of Library a la Carte strips out iframe elements when adding them via the WYSIWYG editor.

To change this, edit the following file:

/app/controllers/application_controller.rb

Find the section for uses_tiny_mce :options and add one more to the list:

 

:extended_valid_elements => "iframe[src|width|height|name|align|style|frameborder],div[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|jid],"

 

Syndicate content