tsechingho / ckeditor-rails

Integrate CKEditor javascript library with Rails asset pipeline
https://github.com/tsechingho/ckeditor-rails
MIT License
213 stars 132 forks source link

Error with posting iframe using "source" #34

Open ttseng opened 11 years ago

ttseng commented 11 years ago

I notice on the CKEditor demo pages that iframes only get embedded using the "Full featured" version and not the "Standard editor."

http://ckeditor.com/demo#full

With my install of ckeditor using ckeditor-rails, it seems like iframes cannot be added via the "Source" button. Is there any way to enable the Full Featured version of the ckeditor so I can add iframes via "Source"?

This is my config.js.coffee file:

CKEDITOR.editorConfig = (config) -> config.startupShowBorders = true config.resize_enabled = false config.scayt_autoStartup = true

config.language = 'en' config.width = '500px'

config.toolbar_Default = [ { name: 'basicstyles', items: [ 'Bold','Italic','Underline','RemoveFormat', '-', 'NumberedList','BulletedList', '-', 'Link','Unlink', '-', 'Source' ] } ] config.toolbar = 'Default' true