Code Monkey home page Code Monkey logo

ckeditor's People

Contributors

amatsuda avatar arturtr avatar bbenezech avatar chewi avatar davidstosik avatar delwyn avatar edslocomb avatar feliperaul avatar fxposter avatar galetahub avatar igorkasyanchuk avatar jcuervo avatar lats1 avatar lenart avatar lhydra avatar liubin avatar maxgronlund avatar mosinski avatar musaffa avatar nuno84 avatar ochiengotieno304 avatar panasyuk avatar patricklindsay avatar pupeno avatar raffael-sfm avatar stream7 avatar thiagoa avatar victor95pc avatar waynn avatar yegorov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ckeditor's Issues

Integrating with Rails 3.1.3 Asset Pipeline on Heroku

Hi! I'm trying to get ckeditor working in a rails 3.1.3 application that is deployed to Heroku. At this point, I'm not using any of the backend active record or paperclip hooks, I just want to let users markup HTML in a textarea. The only customization I've made is to the config.js. I placed a copy of it in /vendor/assets/javascripts/ckeditor/config.js. Here, I define customizations to the ckeditor dataProcessor, dialogDefinition, and toolbar.

In my development environment, everything works great. However, when I deploy to heroku, I just get a blank area where the editor should be. I've done some searches on this issue, with limited results - see here and here. The closest I've gotten so far is doing this:

config.assets.precompile << "*.js"
config.assets.precompile << "*.css"
config.assets.precompile << "*.png"
config.assets.precompile << "*.gif"

When I deploy with the above, ckeditor loads, but none of the images appear correctly. It's almost as if the js and css files are being picked up but not the images. I'm guessing that I could remove the ckeditor gem and install ckeditor itself to the /public/javascripts folder to fix the issue, but I'd like to have the option of attaching images in the future (which is why I chose this gem in the first place).

*** Update - I tried using a regular expression to match the files, but it's still not working. Using the code below, it's back to just showing a blank area and not loading ckeditor at all:

config.assets.precompile << /^[\w\/]*\/ckeditor\/[\w]*\.(js|css|png|jpg|gif)$/

Any ideas on what I'm doing wrong? Is there documentation that says how to integrate this gem with the asset pipeline that I'm missing? Any assistance would be greatly appreciated.

Установка ckeditor

Добрый день, Игорь
Или у меня лыжи не смазаны, или одно из двух...
Создаю новый проект. Добавляю в Gemfile:
gem "ckeditor", "3.7.0.rc1"
gem 'paperclip'

Дальше как обычно: bundle update

Потом:

$ rails generate ckeditor:install --orm=active_record --backend=paperclip
create config/initializers/ckeditor.rb
route mount Ckeditor::Engine => '/ckeditor'
create app/models/ckeditor/asset.rb
create app/models/ckeditor/picture.rb
create app/models/ckeditor/attachment_file.rb
create db/migrate/20120111153837_create_ckeditor_assets.rb
$

Всё. А где, собственно, сам ckeditor? Насколько я помню, раньше эта команда выкачивала его и ставила в public/javascripts/ckeditor/ .
Сейчас у меня ничего не происходит. Соответственно попытки достучаться до самого ckeditor из вьюшек не приносят успеха. Может я что-то делаю не так? Я могу выкачать ручками и залить, но, по-моему, что-то у меня не так происходит...

Был бы очень признателен за помощь...

rails 3.1.3
ruby 1.9.2

ckeditor.js not in path

Default installation procedure from README is not working with Rails 3.1. Rails can not load ckeditor.js.
To make it working I had to:

add this to config/application.rb
config.assets.paths << File.join(Rails.root,'public','javascripts')

change include tag to:
<%= javascript_include_tag "ckeditor/ckeditor.js" %>

ckeditor js folder is in public/javascripts by default.

please, fix the README or wiki or update code

Encoding::UndefinedConversionError ("\xFF" from ASCII-8BIT to UTF-8):

I've got that error when i try to upload photos (using paperclip).

Started POST "/ckeditor/pictures?qqfile=DSC03307.JPG" for 127.0.0.1 at 2011-08-04 12:28:22 +0200
Creating scope :page. Overwriting existing method Ckeditor::Picture.page.
  Processing by Ckeditor::PicturesController#create as HTML
  Parameters: {"qqfile"=>"DSC03307.JPG"}
WARNING: Can't verify CSRF token authenticity
Completed 500 Internal Server Error in 105ms

Encoding::UndefinedConversionError ("\xFF" from ASCII-8BIT to UTF-8):

Ruby: 1.9.2
Rails: 3.1.0.rc5

Cancan usage?

I get this error when trying to use cancan and attempt to browse images in ckeditor:

Expected <app_path>/app/models/ckeditor/picture.rb to define Picture

I have placed this in myapplication_controller.rb

  protected
    # Cancan example
    def ckeditor_authenticate
      authorize! action_name, @asset
    end

    # Set current_user as assetable
    def ckeditor_before_create_asset(asset)
      asset.assetable = current_user
      return true
    end

And this in ability.rb

can [:index], Picture if user.role? :user

I suspect it could be something to do with the namespaced controller/models?

After asset precompilation the main ckeditor javascript is missing a lot of needed dependencies

I installed ckeditor gem (3.7.0.rc2) to my Rails 3.1.3 according to REDME and it's working flawlessly in development but in production after assets precompilation the ckeditor javasscipt complains about missing dependencies (one of many missing files are localization js files from lang catalog).
This leads to textarea completely blank and of course u can not edit anything.
After manually coping all the missing files from gem directory to asstes/ckeditor directory the ckeditor textarea is working properly.
I'm new to assets precompilation (my first Rails 3.1 project) and maybe I'm missing something obvious,
Below You can see whole tree of public/assets/ckeditor directroy after assets precompilation, the lang dir is almost empty and also many plugins are not included:
|-application.js.gz
|-application-4e60340bf83d34ab7f9d133677872aa8.js.gz
|-images
|---spacer.gif
|---spacer-efb4fe7589bccc45af59714c77085d3c.gif
|-lang
|---_translationstatus.txt
|---_translationstatus-58be1ae4db275d7eb31a7e5b4fdd9e2a.txt
|-LICENSE.html
|-CHANGES.html
|-application.css.gz
|-plugins
|---link
|-----images
|-------anchor-fcffa3020aea6d54c634de5ba79c055e.gif
|-------anchor.gif
|---iframe
|-----images
|-------placeholder-f55cfd987744bc8e0d297e75cd483923.png
|-------placeholder.png
|---about
|-----dialogs
|-------logo_ckeditor-23d870d1ed71ce5e586ffae0400ff744.png
|-------logo_ckeditor.png
|---forms
|-----images
|-------hiddenfield-936f3f266258d459fc0a9a6217a0b056.gif
|-------hiddenfield.gif
|---showblocks
|-----images
|-------block_h2-fc92d34b3a2dd29d6bf95ede204d13e3.png
|-------block_div.png
|-------block_h5.png
|-------block_h3-ebf1718456117a9bea551f9a23dc74c7.png
|-------block_pre-864ef82e5c5a85693af5a1cf6e319bf8.png
|-------block_p.png
|-------block_pre.png
|-------block_h1-50d65857bd34db2aa0d7b5f7dc6a4603.png
|-------block_blockquote.png
|-------block_address-dc40ba9312bb0710e218987606e3f7f0.png
|-------block_p-ec9d023fe50605028d4ab499eb0471a4.png
|-------block_h5-2043019ffb4842cc76517fdd416ed19d.png
|-------block_address.png
|-------block_h4.png
|-------block_div-c27c81d18597c829de8e91c9ea39d134.png
|-------block_h2.png
|-------block_h4-a4b70caedfcd4f858f94b8c239e5cba5.png
|-------block_h6.png
|-------block_blockquote-1282e06e43bcabb0856f2124f7ce51f9.png
|-------block_h3.png
|-------block_h1.png
|-------block_h6-350470a92875f09e37ff10adfada6007.png
|---wsc
|-----dialogs
|-------ciframe.html
|-------ciframe-b2a46fc6f5f4795ef6bf5a381ed48e41.html
|-------tmpFrameset-f8fccfa58764e0f1247064bf8290484b.html
|-------tmpFrameset.html
|---uicolor
|-----uicolor-fef7040d883249956c259d82fe466438.gif
|-----uicolor.gif
|-----yui
|-------assets
|---------hue_bg-2a1476b227b192de64c910eb7c7d1959.png
|---------picker_thumb-54fc5a034b6db450cd260c160b4aa1da.png
|---------hue_bg.png
|---------picker_mask-f94a3d8be4cbac6181070a091d00d08c.png
|---------picker_thumb.png
|---------hue_thumb.png
|---------hue_thumb-1fcd818d192a2145b4889954916e6989.png
|---------picker_mask.png
|---flash
|-----images
|-------placeholder-2523aeb6efa394f0835cb7d9c1488c77.png
|-------placeholder.png
|---attachment
|-----images
|-------attachment.png
|-------attachment-550d11a2d1711d201a6eee48774db16e.png
|---smiley
|-----images
|-------wink_smile.gif
|-------tounge_smile.gif
|-------devil_smile.gif
|-------broken_heart.gif
|-------broken_heart-2679345851234d3ac7c39a50db187708.gif
|-------regular_smile-a94edeadc3bfc87a010e9ea79cbc8daa.gif
|-------confused_smile-74cf3920a3740aa276e208a38730732f.gif
|-------thumbs_down.gif
|-------lightbulb.gif
|-------angry_smile-bab741f28e98bc6d917ddfec5c0a5ca8.gif
|-------devil_smile-033fd0723bf91acd7dafeb6c92dce25e.gif
|-------whatchutalkingabout_smile.gif
|-------kiss-39a6ead1ca61839652498e2ff6643e66.gif
|-------thumbs_up.gif
|-------cry_smile.gif
|-------regular_smile.gif
|-------shades_smile-69773406c7c9209f5829139f951498d2.gif
|-------envelope.gif
|-------lightbulb-fdd5a5b671bc3b3bd4dabfc9730bce74.gif
|-------tounge_smile-2446b921c5b4d83fbd6cf8501da54b61.gif
|-------wink_smile-f4031efedd01f310c2e5e660252be2e9.gif
|-------thumbs_down-9bddb23dd9680dfd66dd85271574c374.gif
|-------omg_smile-c3eb09606761c3991e1de4d9d31a0e73.gif
|-------heart-07ef8afe14a00991c3d436b7e804c761.gif
|-------omg_smile.gif
|-------embaressed_smile-c8636d2a952d9b0ceeef311e9ec78a4e.gif
|-------sad_smile.gif
|-------angel_smile.gif
|-------shades_smile.gif
|-------embaressed_smile.gif
|-------confused_smile.gif
|-------whatchutalkingabout_smile-7deb36f7f73a655cfa8ee463f011b4fb.gif
|-------cry_smile-51647a8a04c77e041b26b761bb838010.gif
|-------thumbs_up-946b16fd78b6459336ec8ed64b8ee14f.gif
|-------teeth_smile-688e966965311f30254197f1d062bc7f.gif
|-------envelope-a1bd4c87ea6901474fec9db4599ec7ee.gif
|-------sad_smile-c00123adfc80fb7d76f18daedfaf0ef3.gif
|-------angry_smile.gif
|-------angel_smile-bef270ca78e6fa3b45063d39ec84bc0c.gif
|-------kiss.gif
|-------heart.gif
|-------teeth_smile.gif
|---templates
|-----templates
|-------images
|---------template1-fc3a0467b794d4f6736584e0e59881ce.gif
|---------template3.gif
|---------template2.gif
|---------template2-b1679d5593cbba03a06fb099d582fcfe.gif
|---------template1.gif
|---------template3-5cb326d589cb45a0a162dbb197739113.gif
|---pagebreak
|-----images
|-------pagebreak.gif
|-------pagebreak-699e13d3b4786f15aee9ca768d58ea19.gif
|---embed
|-----images
|-------embed-168b7f8d86d69fd284923a3e7a90ebc3.png
|-------embed.png
|---placeholder
|-----placeholder-5faafb14ee25225246d64dff7bfffbf0.gif
|-----placeholder.gif
|-LICENSE-9eb3d59310bb19013cc29efddb4106b0.html
|-INSTALL-976668b7bad85a515cf0e7abe866daa5.html
|-application-57dd65d14d08bfab0216d4a2cbc81d08.css.gz
|-ckeditor-01580143bdb99b3d10c94daab6132e65.pack
|-application-4e60340bf83d34ab7f9d133677872aa8.js
|-ckeditor.pack
|-CHANGES-bde20c28392aa62188c69ce3c4c9a46f.html
|-filebrowser
|---images
|-----thumbs
|-------jpg-d8e5dcade6d53e4a021298eef7695e7c.gif
|-------txt.gif
|-------docx-97e05c979149d6d09ad84c9fa1c45e62.gif
|-------swf.gif
|-------unknown-1cc0c3bc6dbb6f538dcb306d78d5c803.gif
|-------docx.gif
|-------gz.gif
|-------exe-db1faadd508f76073cf95b5905b3ddd6.gif
|-------rar-12212daa9bdf946b160affe3163016db.gif
|-------psd.gif
|-------htm-ae973aff4bcc012e8f1d4e8dd7f191df.gif
|-------doc.gif
|-------doc-7fd37d9baab817e6a6518703b2411009.gif
|-------tar.gif
|-------gz-141ae5c3f27fb48c9bac1b51d7a42578.gif
|-------unknown.gif
|-------pdf.gif
|-------psd-b40336937377edc6fa44b279be0d4f66.gif
|-------pdf-464e0ebc70f62819c88436d5c512c919.gif
|-------ckfnothumb-3326f382db8d734c59a57dc20ec16c49.gif
|-------txt-b2fa1343bb398c29a948f9dd57945646.gif
|-------tar-141ae5c3f27fb48c9bac1b51d7a42578.gif
|-------xlsx-e78880a8ede965fdd2dd91d3667cd7e3.gif
|-------wmv-0baf29ab558d3096c608cfb93ae1dea8.gif
|-------xlsx.gif
|-------swf-be11171934f391667d0cd75ef9aed5ed.gif
|-------zip-141ae5c3f27fb48c9bac1b51d7a42578.gif
|-------rar.gif
|-------mpg.gif
|-------jpg.gif
|-------ckfnothumb.gif
|-------avi.gif
|-------exe.gif
|-------mpg-28a0a81b3e75a1cfe9655ea66dfe6257.gif
|-------xls.gif
|-------wmv.gif
|-------xls-6e5aa06a32c89712b5ac52a79a862a48.gif
|-------mp3.gif
|-------mp3-ba8555a9d17488f9024d269d6300ed39.gif
|-------htm.gif
|-------zip.gif
|-------avi-7b03d5be2d3b16486d03f1311f9fc63a.gif
|-----gal_add.jpg
|-----gal_more.gif
|-----gal_add.png
|-----gal_del.png
|-----gal_del-ef58cd25c0d929a326863cafb5d52eb3.png
|-----gal_add-bd27ea2249283c3c694d6eef8a94ad84.jpg
|-----gal_add-d5a5e025486c5f9f7fb7eec347d88559.png
|-----gal_more-1814e4699166002035a3a05939464a6d.gif
|-----preloader.gif
|-----preloader-3ca82ce9264dc0496fcb6962c562825c.gif
|---javascripts
|-----application-40e4c0795aad3894ceaa6ea53ef639f8.js.gz
|-----application.js.gz
|-----application-40e4c0795aad3894ceaa6ea53ef639f8.js
|-----application.js
|-skins
|---office2003
|-----icons_rtl-aeb47940348bb794d0c51a8c752904b8.png
|-----images
|-------dialog_sides_rtl-8db16a93f455a72394cfc976eb4cadb4.png
|-------mini.gif
|-------dialog_sides_rtl.png
|-------sprites_ie6-f4c92c03a74d3ca5ed75eab5d0efc218.png
|-------mini-46560712c4ce68a8c7f4076d34cba20e.gif
|-------dialog_sides.gif
|-------dialog_sides-566f701a7fb1582bb8aa56aa23a08650.gif
|-------dialog_sides-63b6dee922b8534a4dffc35b89ab1a55.png
|-------sprites.png
|-------dialog_sides.png
|-------sprites-4c0eb4a3d1eaf4ed444aec605899d073.png
|-------noimage-a2cc8fd2b37f368e469119ab83013612.png
|-------noimage.png
|-------sprites_ie6.png
|-----icons_rtl.png
|-----icons.png
|-----icons-9d3eca06a539035ef6b1c3bd81df1aac.png
|---v2
|-----icons_rtl-aeb47940348bb794d0c51a8c752904b8.png
|-----images
|-------mini.gif
|-------dialog_sides_rtl.png
|-------mini-46560712c4ce68a8c7f4076d34cba20e.gif
|-------sprites_ie6-f87b6810a17d1fd9740f7e9eb27f351f.png
|-------dialog_sides_rtl-213ac5019db4e41512b98c35f7a48f2e.png
|-------dialog_sides.gif
|-------dialog_sides-3e5878a759ac96ccc7a0120ede543239.png
|-------sprites.png
|-------sprites-c3f7ae056042da169ec1a81f18eb31e6.png
|-------toolbar_start-d24bf760b3d2d019158605ec6c957426.gif
|-------dialog_sides.png
|-------dialog_sides-b2e0faad80156a5b6d1e3b2e154de599.gif
|-------toolbar_start.gif
|-------noimage-a2cc8fd2b37f368e469119ab83013612.png
|-------noimage.png
|-------sprites_ie6.png
|-----icons_rtl.png
|-----icons.png
|-----icons-9d3eca06a539035ef6b1c3bd81df1aac.png
|---kama
|-----icons_rtl-aeb47940348bb794d0c51a8c752904b8.png
|-----images
|-------mini.gif
|-------dialog_sides_rtl.png
|-------mini-46560712c4ce68a8c7f4076d34cba20e.gif
|-------dialog_sides_rtl-213ac5019db4e41512b98c35f7a48f2e.png
|-------dialog_sides.gif
|-------dialog_sides-3e5878a759ac96ccc7a0120ede543239.png
|-------sprites.png
|-------toolbar_start-d24bf760b3d2d019158605ec6c957426.gif
|-------dialog_sides.png
|-------dialog_sides-b2e0faad80156a5b6d1e3b2e154de599.gif
|-------toolbar_start.gif
|-------sprites_ie6-0657a22bf8896c14fa3bab9aa8ce4625.png
|-------noimage-a2cc8fd2b37f368e469119ab83013612.png
|-------sprites-2f4be37dfe20462d3879fa9e97be7c4b.png
|-------noimage.png
|-------sprites_ie6.png
|-----icons_rtl.png
|-----icons.png
|-----icons-9d3eca06a539035ef6b1c3bd81df1aac.png
|-application.js
|-application.css
|-INSTALL.html
|-application-57dd65d14d08bfab0216d4a2cbc81d08.css

Upload images more than 1MB

When i upload images more than 1MB, The Paperclip Don`t save the files.

*BROWSER: Firefox 5 / RAILS 3.0.9 / PAPERCLIP 2.3.16

*IMAGE WITH 2.5MB:

Started POST "/ckeditor/pictures?qqfile=DSC_0570.jpg" for 192.168.68.1 at Fri Aug 05 03:39:27 -0300 2011
Processing by Ckeditor::PicturesController#create as HTML
Parameters: {"qqfile"=>"DSC_0570.jpg"}
�[1m�[35mSQL (0.7ms)�[0m BEGIN
�[1m�[36mSQL (0.2ms)�[0m �[1mROLLBACK�[0m
Rendered text template (0.0ms)
Completed 200 OK in 6335ms (Views: 2.9ms | ActiveRecord: 0.9ms)

*IMAGE WITH 500KB:

Started POST "/ckeditor/pictures?qqfile=P2250062.JPG" for 192.168.68.1 at Fri Aug 05 03:36:57 -0300 2011
Processing by Ckeditor::PicturesController#create as HTML
Parameters: {"qqfile"=>"P2250062.JPG"}
�[1m�[36mSQL (0.2ms)�[0m �[1mBEGIN�[0m
�[1m�[35mSQL (0.9ms)�[0m describe ckeditor_assets
�[1m�[36mAREL (1.5ms)�[0m �[1mINSERT INTO ckeditor_assets (assetable_id, assetable_type, updated_at, created_at, type, data_file_name, data_file_size, data_content_type) VALUES (NULL, NULL, '2011-08-05 06:37:00', '2011-08-05 06:37:00', 'Ckeditor::Picture', 'p2250062.jpg', 1008849, 'image/jpeg')�[0m
[paperclip] Saving attachments.
[paperclip] saving /mnt/hgfs/Projetos/sites/teuto/codigo-teuto/public/ckeditor_assets/pictures/9/content_p2250062.jpg
[paperclip] saving /mnt/hgfs/Projetos/sites/teuto/codigo-teuto/public/ckeditor_assets/pictures/9/original_p2250062.jpg
[paperclip] saving /mnt/hgfs/Projetos/sites/teuto/codigo-teuto/public/ckeditor_assets/pictures/9/thumb_p2250062.jpg
�[1m�[35mSQL (1.1ms)�[0m COMMIT
Rendered text template (0.0ms)
Completed 200 OK in 3515ms (Views: 2.5ms | ActiveRecord: 3.8ms)

Error compiling CSS asset

 Error compiling asset ckeditor/skins/kama/editor.css:  
 Sass::SyntaxError: Invalid CSS after "...ke_icon{filter:": expected expression (e.g. 1px, bold), was ";}.cke_skin_kam..."
 (in app/assets/javascripts/ckeditor/skins/kama/editor.css)
 Served asset /ckeditor/skins/kama/editor.css - 500 Internal Server Error

All properties css 'filter' problem
To test, I deleted them all, and it seems to work. Remains to be tested on different browser like IE

cannot with formtastic 2.0

when gem 'formtastic',> '2.0.0.rc1' can not work

<%= f.input :content, :as => :cktext_area %>

because formtastic 2.0.0.rc1 remove method basic_input_helper

I am a new rubyer , can not finsh it

SSL_connect Error when installing

When I run rails generate ckeditor:install the quoted error occours.
Can you help me? Whats the problem?

Thanks a lot

> rails generate ckeditor:install
      create  config/initializers/ckeditor.rb
fetching ckeditor_3.6.1.tar.gz
      create  tmp/ckeditor_3.6.1.tar.gz
      create  public/javascripts/ckeditor
      create  public/javascripts/ckeditor/config.js
      create  public/javascripts/ckeditor/filebrowser/images/gal_add.jpg
      create  public/javascripts/ckeditor/filebrowser/images/gal_add.png
      create  public/javascripts/ckeditor/filebrowser/images/gal_del.png
      create  public/javascripts/ckeditor/filebrowser/images/gal_more.gif
      create  public/javascripts/ckeditor/filebrowser/images/preloader.gif
      create  public/javascripts/ckeditor/filebrowser/images/thumbs/ckfnothumb.gif
      create  public/javascripts/ckeditor/filebrowser/images/thumbs/mp3.gif
      create  public/javascripts/ckeditor/filebrowser/images/thumbs/pdf.gif
      create  public/javascripts/ckeditor/filebrowser/images/thumbs/rar.gif
      create  public/javascripts/ckeditor/filebrowser/images/thumbs/swf.gif
      create  public/javascripts/ckeditor/filebrowser/images/thumbs/xls.gif
      create  public/javascripts/ckeditor/filebrowser/javascripts/application.js
      create  public/javascripts/ckeditor/filebrowser/stylesheets/uploader.css
      create  public/javascripts/ckeditor/plugins/attachment/dialogs/attachment.js
      create  public/javascripts/ckeditor/plugins/attachment/images/attachment.png
      create  public/javascripts/ckeditor/plugins/attachment/lang/en.js
      create  public/javascripts/ckeditor/plugins/attachment/lang/ru.js
      create  public/javascripts/ckeditor/plugins/attachment/lang/uk.js
      create  public/javascripts/ckeditor/plugins/attachment/plugin.js
      create  public/javascripts/ckeditor/plugins/embed/dialogs/embed.js
      create  public/javascripts/ckeditor/plugins/embed/images/embed.png
      create  public/javascripts/ckeditor/plugins/embed/lang/en.js
      create  public/javascripts/ckeditor/plugins/embed/lang/ru.js
      create  public/javascripts/ckeditor/plugins/embed/lang/uk.js
      create  public/javascripts/ckeditor/plugins/embed/plugin.js
fetching rails.js
C:/Ruby/lib/ruby/1.8/net/http.rb:586:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:
 certificate verify failed (OpenSSL::SSL::SSLError)
        from C:/Ruby/lib/ruby/1.8/net/http.rb:586:in `connect'
        from C:/Ruby/lib/ruby/1.8/net/http.rb:553:in `do_start'
        from C:/Ruby/lib/ruby/1.8/net/http.rb:542:in `start'
        from C:/Ruby/lib/ruby/1.8/open-uri.rb:242:in `open_http'
        from C:/Ruby/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
        from C:/Ruby/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
        from C:/Ruby/lib/ruby/1.8/open-uri.rb:162:in `catch'
        from C:/Ruby/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
        from C:/Ruby/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
        from C:/Ruby/lib/ruby/1.8/open-uri.rb:518:in `open'
        from C:/Ruby/lib/ruby/1.8/open-uri.rb:30:in `open'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/actions/file_manipulation.rb:77:in `get'
        from C:/Ruby/lib/ruby/gems/1.8/gems/ckeditor-3.6.0/lib/generators/ckeditor/install_generator.rb:42:in `download_
javascripts'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/shell.rb:12:in `map'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/core_ext/ordered_hash.rb:75:in `each'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
        from C:/Ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/generators.rb:163:in `invoke'
        from C:/Ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/commands/generate.rb:10
        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `load_dependen
cy'
        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:596:in `new_constants
_in'
        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `load_dependen
cy'
        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
        from C:/Ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/commands.rb:17
        from script/rails:6:in `require'
        from script/rails:6
PS D:\Rails\areiv_portal> rails generate ckeditor:install
   identical  config/initializers/ckeditor.rb
fetching ckeditor_3.6.1.tar.gz
      create  tmp/ckeditor_3.6.1.tar.gz
       exist  public/javascripts/ckeditor
   identical  public/javascripts/ckeditor/config.js
   identical  public/javascripts/ckeditor/filebrowser/images/gal_add.jpg
   identical  public/javascripts/ckeditor/filebrowser/images/gal_add.png
   identical  public/javascripts/ckeditor/filebrowser/images/gal_del.png
   identical  public/javascripts/ckeditor/filebrowser/images/gal_more.gif
   identical  public/javascripts/ckeditor/filebrowser/images/preloader.gif
   identical  public/javascripts/ckeditor/filebrowser/images/thumbs/ckfnothumb.gif
   identical  public/javascripts/ckeditor/filebrowser/images/thumbs/mp3.gif
   identical  public/javascripts/ckeditor/filebrowser/images/thumbs/pdf.gif
   identical  public/javascripts/ckeditor/filebrowser/images/thumbs/rar.gif
   identical  public/javascripts/ckeditor/filebrowser/images/thumbs/swf.gif
   identical  public/javascripts/ckeditor/filebrowser/images/thumbs/xls.gif
   identical  public/javascripts/ckeditor/filebrowser/javascripts/application.js
   identical  public/javascripts/ckeditor/filebrowser/stylesheets/uploader.css
   identical  public/javascripts/ckeditor/plugins/attachment/dialogs/attachment.js
   identical  public/javascripts/ckeditor/plugins/attachment/images/attachment.png
   identical  public/javascripts/ckeditor/plugins/attachment/lang/en.js
   identical  public/javascripts/ckeditor/plugins/attachment/lang/ru.js
   identical  public/javascripts/ckeditor/plugins/attachment/lang/uk.js
   identical  public/javascripts/ckeditor/plugins/attachment/plugin.js
   identical  public/javascripts/ckeditor/plugins/embed/dialogs/embed.js
   identical  public/javascripts/ckeditor/plugins/embed/images/embed.png
   identical  public/javascripts/ckeditor/plugins/embed/lang/en.js
   identical  public/javascripts/ckeditor/plugins/embed/lang/ru.js
   identical  public/javascripts/ckeditor/plugins/embed/lang/uk.js
   identical  public/javascripts/ckeditor/plugins/embed/plugin.js
fetching rails.js
C:/Ruby/lib/ruby/1.8/net/http.rb:586:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:
 certificate verify failed (OpenSSL::SSL::SSLError)
        from C:/Ruby/lib/ruby/1.8/net/http.rb:586:in `connect'
        from C:/Ruby/lib/ruby/1.8/net/http.rb:553:in `do_start'
        from C:/Ruby/lib/ruby/1.8/net/http.rb:542:in `start'
        from C:/Ruby/lib/ruby/1.8/open-uri.rb:242:in `open_http'
        from C:/Ruby/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
        from C:/Ruby/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
        from C:/Ruby/lib/ruby/1.8/open-uri.rb:162:in `catch'
        from C:/Ruby/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
        from C:/Ruby/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
        from C:/Ruby/lib/ruby/1.8/open-uri.rb:518:in `open'
        from C:/Ruby/lib/ruby/1.8/open-uri.rb:30:in `open'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/actions/file_manipulation.rb:77:in `get'
        from C:/Ruby/lib/ruby/gems/1.8/gems/ckeditor-3.6.0/lib/generators/ckeditor/install_generator.rb:42:in `download_
javascripts'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/shell.rb:12:in `map'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/core_ext/ordered_hash.rb:75:in `each'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
        from C:/Ruby/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
        from C:/Ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/generators.rb:163:in `invoke'
        from C:/Ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/commands/generate.rb:10
        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `load_dependen
cy'
        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:596:in `new_constants
_in'
        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `load_dependen
cy'
        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
        from C:/Ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/commands.rb:17
        from script/rails:6:in `require'
        from script/rails:6

Install failure: gsub .../dialogs/image.js

Clean install gives error:

  create  public/javascripts/ckeditor/plugins/embed/lang/uk.js
  create  public/javascripts/ckeditor/plugins/embed/plugin.js
  create  public/javascripts/ckeditor/config.js

    gsub  public/javascripts/ckeditor/plugins/image/dialogs/image.js

C:/Users/Ed/.pik/rubies/Ruby-192-p136/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions/file_manipulation.rb:226:in binread': No such file or directory - C:/Users/Ed/webapps/FlexCredits2/flexcredits/public/javascripts/ckeditor/plugins/image/dialogs/image.js (Errno::ENOEN T) from C:/Users/Ed/.pik/rubies/Ruby-192-p136/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions/file_manipulation.rb:226:ingsub
_file'
from C:/Users/Ed/.pik/rubies/Ruby-192-p136/lib/ruby/gems/1.9.1/gems/ckeditor-3.6.3/lib/generators/ckeditor/install_generator.rb:49
:in `block in update_javascripts'

No route matches ckeditor_assets

I decided to open new issue after integrating ckeditor into Rails 3.1 application.
Everything works almost fine, with one exception. I cannot use files uploaded with ckeditor (they go to ckeditor_assets)

ActionController::RoutingError (No route matches [GET] "/ckeditor_assets/pictures/1/thumb_ihop-chimp.png"):

Is there a way to tell Rails to use this path /public/ckeditor_assets ? Or change it to be under /public/assets/ ?

ckeditor seems to require formtastic

I just installed ckeditor 3.7.0.rc2 and when I start Rails it says:

/Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36:in `const_missing': uninitialized constant Formtastic::Inputs (NameError)
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/ckeditor-3.7.0.rc2/lib/ckeditor/hooks/formtastic.rb:4:in `<class:CkeditorInput>'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/ckeditor-3.7.0.rc2/lib/ckeditor/hooks/formtastic.rb:3:in `<top (required)>'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/ckeditor-3.7.0.rc2/lib/ckeditor/engine.rb:24:in `block in <class:Engine>'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializers'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
    from /Users/pupeno/Documents/watu/config/environment.rb:5:in `<top (required)>'
    from /Users/pupeno/Documents/watu/config.ru:4:in `block in <main>'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/rack-1.3.6/lib/rack/builder.rb:51:in `instance_eval'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/rack-1.3.6/lib/rack/builder.rb:51:in `initialize'
    from /Users/pupeno/Documents/watu/config.ru:1:in `new'
    from /Users/pupeno/Documents/watu/config.ru:1:in `<main>'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/rack-1.3.6/lib/rack/builder.rb:40:in `eval'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/rack-1.3.6/lib/rack/builder.rb:40:in `parse_file'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/rack-1.3.6/lib/rack/server.rb:200:in `app'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/railties-3.1.3/lib/rails/commands/server.rb:46:in `app'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/rack-1.3.6/lib/rack/server.rb:301:in `wrapped_app'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/rack-1.3.6/lib/rack/server.rb:252:in `start'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/railties-3.1.3/lib/rails/commands.rb:54:in `block in <top (required)>'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
    from /Users/pupeno/.rvm/gems/ruby-1.9.2-p290@watu/gems/railties-3.1.3/lib/rails/commands.rb:49:in `<top (required)>'
    from /Users/pupeno/Documents/watu/script/rails:6:in `require'
    from /Users/pupeno/Documents/watu/script/rails:6:in `<top (required)>'
    from -e:1:in `load'
    from -e:1:in `<main>'

Process finished with exit code 1

I change config.js language to zh-cn,but still show English

I use Rails 3.1.0 on Ubuntu.
I have added config.language = 'zh-cn'; to config.js
my view is:
cktext_area_tag("news[content]",@news.content)
and html is:

<textarea cols="40" id="news_content" name="news[content]" rows="20">sx</textarea>
<script type="text/javascript">
<!-- /<![CDATA[ -->
if (CKEDITOR.instances['news_content']) {CKEDITOR.remove(CKEDITOR.instances['news_content']);}CKEDITOR.replace('news_content', { language: 'en' });
<!-- /]]> -->
</script>

I know I must change this { language: 'en' } to { language: 'zh-cn' }
Why don't you generate cktext_area_ta with config.js's config.language ?
Thank you!

uninitialized constant Formtastic::Inputs

I am using rails 3.1.3 and the lastest commit from ckeditor.

I am getting the following on boot:

/Users/rodrigosol/.rvm/gems/ruby-1.9.2-p290/bundler/gems/ckeditor-6d8c66bf555c/lib/ckeditor/hooks/formtastic.rb:4:in `<class:CkeditorInput>': uninitialized constant Formtastic::Inputs (NameError)
    from /Users/rodrigosol/.rvm/gems/ruby-1.9.2-p290/bundler/gems/ckeditor-6d8c66bf555c/lib/ckeditor/hooks/formtastic.rb:3:in `<top (required)>'

Any idea?

Best

vendor/ directory isn't included. rake assets:precompile fail.

Hi, thanks for your work on this.

On your latest version

gem "ckeditor", "3.7.0.rc1"

It doesn't work when I compile my assets on rails 3.1, it spits out this error.

couldn't find file 'ckeditor/filebrowser/stylesheets/uploader.css'
(in /usr/local/lib/ruby/gems/1.9.1/gems/ckeditor-3.7.0.rc1/app/assets/stylesheets/ckeditor/application.css:5)

Here's the gem directory

ls `bundle show ckeditor`
Gemfile  MIT-LICENSE  README.rdoc  Rakefile  app  config  lib  test

Looks like the vendor/ directory is still not included on the gemspec :)

Thanks
Jason

Browse server not able to access

I installed your ckeditor, its working nice but when I tried to upload a image, I clicked the 'browse server' button it leads me to 404 not found exception. I have given below 404 url when I click the browse server button.

http://localhost:3000/ckeditor/pictures?CKEditor=referjob_description&CKEditorFuncNum=2&langCode=en

Environment: Rails 3.0.9
Paperclick 2.3

I think ckeditor gem controller 'ckeditor' is not accessible through my rails root. please help me how to solve this issue.

File attachment error

Добрый день, Игорь
Или я что-то не то делаю, или одно из двух.
Дело в следующем. И картинки, и аттачменты отлично добавляются на сервер. Потом, когда хочешь вставить картинку из уже добавленных, нажимаю "Browse server" и отлично можно выбрать из картинок. Однако с аттачами ситуация другая. Когда ещё нет ни одного аттача, то окно "Browse server" отлично открывается с одной картинкой "Upload". Нажимаю на неё, выбираю файл xls, добавляю, он красиво добавляется, появляется в списке загруженных, вставляется в текст страницы. Но... когда я пытаюсь сделать ещё раз "Browse server" в аттачменте, флеше или линк-е, то выдаётся вот это: http://pastebin.com/G1yWGrGM
Это меня очень печалит... как это победить?
rails 3.1.0

Заранее спасибо за помощь! (-:

"CKEDITOR is not defined" problem

I am using Rails 3.0.7 too. ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]. I've followed the steps in the README to the point and have included the ckeditor.js file as needed. The file loads but the editor is not shown throwing "CKEDITOR is not defined" error.

Further, I am using simple_form for my form builder and am using it like this:
<%= simple_form_for(@police_intimation) do |f| %>

... <%= f.ckeditor :content, :label => false, :input_html => { :toolbar => 'Full' } %> ...
<% end %>

This produces this on the form:

<script type="text/javascript"> // </script>

Which throws up "CKEDITOR is not defined" error. I am not sure what is going wrong here.

Doesn't work in IE8

Internet Explorer 8 (and possibly other versions) will stop executing the script if the word "class" is used as a key in a hash without it being quoted. As in the following code generated by ckeditor 3.6.2:

if (CKEDITOR.instances['school_page_body']) {CKEDITOR.remove(CKEDITOR.instances['school_page_body']);}CKEDITOR.replace('school_page_body', { class: 'text optional',language: 'en' });

I've fixed this here: ritchiey@123c14a

but I don't know what the protocol is for doing a pull request for a fix to a tagged release.

File Browser link is not working

I am using
Rails 3.1.3
Windows system

here When I click add image icon from CkEditor tool FILE BROWSER Llink is not appearing.

Please let me know, how to fix this issue.

Regards,
Pradeep CS

readme error

if use rails 3.1, should is

gem "ckeditor", :git => "git://github.com/galetahub/ckeditor.git"

and SimpleForm integration should annotate use simple_form 1.5, when use simple_form 2.0 it error

undefined method `render' for #<Ckeditor::Hooks::SimpleFormBuilder::CkeditorInput:0x0000000621f8a8>

rake assets:precompile fails with Unexpected character ''

Just installed the latest ckeditor version and faced with this error when trying to test it in production. It failed on assets:precompile

Full trace

$ rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/Users/thezed/opt/ruby/1.9.2-p290/bin/ruby /Users/thezed/.gems/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
rake aborted!
Unexpected character '' (line: 9647, col: 1, pos: 263719)

undefined
  (in /Users/thezed/rails/cktest/app/assets/javascripts/application.js)
/Users/thezed/.gems/gems/execjs-1.2.13/lib/execjs/external_runtime.rb:67:in `extract_result'
/Users/thezed/.gems/gems/execjs-1.2.13/lib/execjs/external_runtime.rb:27:in `block in exec'
/Users/thezed/.gems/gems/execjs-1.2.13/lib/execjs/external_runtime.rb:40:in `compile_to_tempfile'
/Users/thezed/.gems/gems/execjs-1.2.13/lib/execjs/external_runtime.rb:26:in `exec'
/Users/thezed/.gems/gems/uglifier-1.2.1/lib/uglifier.rb:101:in `compile'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/compressors.rb:18:in `compress'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/processing.rb:265:in `block in js_compressor='
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/processor.rb:29:in `call'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/processor.rb:29:in `evaluate'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/context.rb:175:in `block in evaluate'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/context.rb:172:in `each'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/context.rb:172:in `evaluate'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:242:in `block in build_source'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/caching.rb:30:in `cache_hash'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:235:in `build_source'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:71:in `digest'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/asset.rb:95:in `digest_path'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/static_compiler.rb:58:in `path_for'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/static_compiler.rb:35:in `write_asset'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/static_compiler.rb:21:in `block in compile'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/base.rb:151:in `block in each_logical_path'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/base.rb:139:in `block (2 levels) in each_file'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/base.rb:129:in `each'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/base.rb:129:in `each_entry'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/base.rb:137:in `block in each_file'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/base.rb:136:in `each'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/base.rb:136:in `each_file'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/base.rb:149:in `each_logical_path'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/static_compiler.rb:18:in `compile'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/assets.rake:52:in `internal_precompile'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/assets.rake:66:in `block (3 levels) in <top (required)>'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/thezed/opt/ruby/1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/assets.rake:56:in `block (3 levels) in <top (required)>'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/thezed/opt/ruby/1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/thezed/.gems/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/Users/thezed/.gems/bin/rake:19:in `load'
/Users/thezed/.gems/bin/rake:19:in `<main>'
Tasks: TOP => assets:precompile:primary
rake aborted!
Command failed with status (1): [/Users/thezed/opt/ruby/1.9.2-p290/bin/ruby...]
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/file_utils.rb:80:in `ruby'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `ruby'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/assets.rake:9:in `ruby_rake_task'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/assets.rake:17:in `invoke_or_reboot_rake_task'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/assets.rake:25:in `block (2 levels) in <top (required)>'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/thezed/opt/ruby/1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/thezed/.gems/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/Users/thezed/.gems/bin/rake:19:in `load'
/Users/thezed/.gems/bin/rake:19:in `<main>'
Tasks: TOP => assets:precompile

default locales

hey guys,

is it possible to configure the locales to load. let's say i just want the en.yml and de.yml files loaded and not all of them. is it possible? thanks!

Changes for Filemanager working properly in Chrome

Hi,

I had a problem with beeing able to select an image in filemanager on the Chrome browser. Upload as well wasn't working.

First I saw that my js files in filebrowser's folder weren't all there. I had to add them manually according to the install_generator.rb file:

      def download_javascripts
        js_dir = "#{install_dir}/ckeditor/filebrowser/javascripts"

        say_status("fetching rails.js", "", :green)
        get "https://github.com/rails/jquery-ujs/raw/master/src/rails.js", "#{js_dir}/rails.js"

        say_status("fetching fileuploader.js", "", :green)
        get "https://raw.github.com/galetahub/file-uploader/master/client/fileuploader.js", "#{js_dir}/fileuploader.js"

        say_status("fetching jquery-1.6.2.min.js", "", :green)
        get "https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js", "#{js_dir}/jquery.js"

        say_status("fetching jquery.tmpl.min.js", "", :green)
        get "https://raw.github.com/jquery/jquery-tmpl/master/jquery.tmpl.min.js", "#{js_dir}/jquery.tmpl.js"
      end

Then I saw an error in the filebrowser/javascripts/application.js on the line 13:

I replaced })(jQuery); by })($);

Finally, it works on Safari, Chrome and Firefox for Mac OS

I have no question here to ask but still I don't know why 'jQuery' wasn't recognized in application.js

I don't know if it's an issue, and if it is I didn't check how to fix it for the gem. I apologize for this ;)

Routing issues

When I open the any of the browse server buttons I get a whole set of routing errors:

1 example is:
ActionController::RoutingError (No route matches [GET] "/vendor/assets/ckeditor/filebrowser/images/gal_add.png"):

When I run
Rails.application.config.assets.paths
I do see the path in in my results and the files do exists in those paths. I I don't if this is a sprockets issue or not, but I am not sure what I can do as a work around.

Bailed out of session after file upload

I'm using this gem inside a backend, restricted to admin with Devise and CanCan.

When I upload an image through the editor I'm bailed out of the session, preventing me to save the form I'm editing.

Btw the image is uploaded correctly, so after I've been bailed out I need to login again and then reopen the form and attach the image browsing the files on the server.

formtastic ckeditor field javascript requires :cols=> or throws error

I'm seeing this generated code in formtastic unless input_html is specified with :cols=>, in the javascript object cols: should have a default value if it is not specified or should not be entered in the hash.

f.input :body, :required => true, :as => :ckeditor

//

It works correctly with this code:

f.input :body, :required => true, :as => :ckeditor, :input_html => {:cols=>10, :height => 400 }

//

the version "3.6.3" doesn't work in rails 2.3.14

Rails 2.3.14 application starting on http://0.0.0.0:3000
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.7
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in require': no such file to load -- rails (MissingSourceFile) from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:inrequire'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:in new_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:inrequire'
from /Library/Ruby/Gems/1.8/gems/ckeditor-3.6.3/lib/ckeditor/engine.rb:1
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in require' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:inrequire'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:in new_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:inrequire'
from /Library/Ruby/Gems/1.8/gems/ckeditor-3.6.3/lib/ckeditor.rb:68

How i make this version work fine in rails 2.3.14 ?

default locales

hey guys,

is it possible to configure the locales to load. let's say i just want the en.yml and de.yml files loaded and not all of them. is it possible? thanks!

Select Attachment file - URL ERROR

When you select a file on the server, it captures the link and enter the URL field.
But when I click ok, it creates a link with this value: javascript: void (0) / * 377 * /

настройка ckeditor

не в курсе, где я могу настроить такие вещи, как доступные теги (убрать <style>), и проверку орфографии?

Toolbars not working

Not sure if this is a CKEditor issue, or a Rails issue that this gem would be supposed to fix, but here goes : I'm using Rails 3.1.0 and, oddly enough, a lot of buttons in the CKEDitor's toolbar don't work : some Javascript exception get on the way.

Here's the traceback :
Uncaught TypeError: Property 'focus' of object [object DOMWindow] is not a function
e.extend.focus
j.add.init.C.on.C.addMode.focus
a.editor.focus
a.command.exec
e.extend.execCommand
k.button.e.extend.click
k.button.render.t.execute
a.tools.addFunction
a.tools.callFunction
(anonymous function)
onclick

Here's a sample of code causing this bug in Rails 3.1.0 :
<%= form_for @resource do | f | %>

<%= f.label :description %>
<%= f.cktext_area :description, :toolbar => "Full" %>

<%= f.submit %>
<% end %>

config.toolbar = 'Easy'; Don't WORK

When load CKEDITOR, the plugin load de FULL toolbar.

Is the most ckeditor example in the website.

and don`t have 'attachment' and 'embed'

How to insert thumbnails

Hi,
This is an awesome gem... I'm using it with paperclip. I'm a bit confused on how one inserts thumbnails via the GUI interface. I see where to configure the size of the "content" and thumbnail versions in the ckeditor picture model, but I can't for the life of me find out where to insert the thumbnail version via the GUI. Since I know it exists, this would be convenient to have.

Missing feature or am I missing something?

If it is missing, any pointers on where to start adding an interface element would help. CKeditor is a bit vast it seems like.

ckeditor and Devise

After send pictures to server, the session of DEVISE is deleted.

And than, redirect to sigin page.

Relation "ckeditor_assets" does not exist

Hey All,

When I try to browser the server for images or upload an image using ckeditor, I get this error:

PGError: ERROR: relation "ckeditor_assets" does not exist
LINE 4: WHERE a.attrelid = '"ckeditor_assets"'::regclas...
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"ckeditor_assets"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum

The full trace is here: http://pastie.org/3010537

Has anybody run into this issue and / or know how to fix it?

I'm running:
Rails 3.0.9
Ruby 1.9.2
Ckeditor 3.6.0

Thanks.

Simpleform undefined method 'render' error

I'm getting an "undefined method 'render' error when trying to use the gem. Here's my setup:

Rails 3.2.1
Simpleform 1.5.2
Ckeditor 3.7.0.rc2

I followed the instructions in the Readme and confirmed that the ckeditor files are in assets/ckeditor. I added the required line in my application.js and my simpleform form field is:

<%= f.ckeditor :body, :label => false, :input_html => { :toolbar => 'Full' } %>

which gives me the following error:

undefined method `render' for #Ckeditor::Hooks::SimpleFormBuilder::CkeditorInput:0x007fe0a9bc9120

I've also confirmed that ckedit.js is being loaded into the browser.

Am I using an incorrect group of gem versions, is Rails 3.2.1 monkeying with this, or something else?

Thanks for your help.

  • Robert

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.