Closed kardasa closed 12 years ago
By default Rails 3.1 does not compile css and js files, that is the reason.
Hi, thanks for callback, fixed in commit: https://github.com/galetahub/ckeditor/commit/b336d27ee741a696b060a9ef1debedab6b6abfe6
I'm sorry. Still it does not work. :)
The files are present now, but paths are broken.
I tried gem 'ckeditor', git: 'git://github.com/galetahub/ckeditor.git', ref: 'b336d27ee741a696b060a9ef1debedab6b6abfe6'
And then I get:
GET http://lvh.me:3000/pages/dfs/config.js?t=B8DJ5M3 404 (Not Found) GET http://lvh.me:3000/pages/dfs/skins/kama/editor.css?t=B8DJ5M3 404 (Not Found) GET http://lvh.me:3000/pages/dfs/lang/ru.js?t=B8DJ5M3 404 (Not Found) TypeError: 'undefined' is not an object (evaluating 'a.lang.contextmenu.options')
The path is relative to my page, so the files are not found.
Same here.
Updating https://github.com/bradphelan/rocket_tag.git
Updating https://github.com/galetahub/ckeditor
Fetching gem metadata from https://rubygems.org/......
Fetching gem metadata from https://rubygems.org/..
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.2.0)
Using activesupport (3.2.2)
Using builder (3.0.0)
Using activemodel (3.2.2)
Using erubis (2.7.0)
Using journey (1.0.3)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.2)
Using actionpack (3.2.2)
Using mime-types (1.17.2)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.2)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.2)
Using activeresource (3.2.2)
Using sass (3.1.15)
Using bootstrapped-rails (2.0.7.9)
Using bundler (1.1.3)
Using rack-ssl (1.3.2)
Using json (1.6.6)
Using rdoc (3.12)
Using thor (0.14.6)
Using railties (3.2.2)
Using chosen-rails (0.9.8)
Using orm_adapter (0.0.7)
Using ckeditor (3.7.0.rc3) from https://github.com/galetahub/ckeditor (at master)
Using cocaine (0.2.1)
Using coffee-script-source (1.3.1)
Using execjs (1.3.0)
Using coffee-script (2.2.0)
Using coffee-rails (3.2.2)
Using daemons (1.1.8)
Using dalli (2.0.3)
Using eventmachine (0.12.10)
Using faker (1.0.1)
Using jquery-rails (2.0.2)
Using kaminari (0.13.0)
Using kgio (2.7.4)
Using mysql2 (0.3.11)
Using newrelic_rpm (3.3.3)
Using pacecar (1.5.3)
Using paper_trail (2.6.3)
Using paperclip (3.0.2)
Using polyamorous (0.5.0)
Using rails (3.2.2)
Using raindrops (0.8.0)
Using squeel (0.9.5)
Using rocket_tag (0.3.1) from https://github.com/bradphelan/rocket_tag.git (at master)
Using sass-rails (3.2.5)
Using sqlite3 (1.3.5)
Using thin (1.3.1)
Using uglifier (1.2.4)
Using unicorn (4.2.1)
config.js - Failed to load resource: the server responded with a status of 404 (Not Found)
missing.png - Failed to load resource: the server responded with a status of 404 (Not Found)
editor.css - Failed to load resource: the server responded with a status of 404 (Not Found)
pt-br.js - Failed to load resource: the server responded with a status of 404 (Not Found)
application-6c389dd2d39923b3cbde32570c7c528f.js:22 - TypeError: 'undefined' is not an object (evaluating 'a.lang.contextmenu.options')
same here!
I left CKEditor for WYSIHTML5.
BTW I fixed this by manually copying the files mentioned above.
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