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 #23

Open saravananNV opened 11 years ago

saravananNV commented 11 years ago

hi tsechingho, i have cleared that "var" error with your help..after that.I have another error on the same basepath.js.coffee

SyntaxError: unexpected COMPARE.here is my file (basepath.js.coffee

<% base_path = ' ' if ENV['PROJECT'] =~ /editor/i base_path << "/#{Rails.root.basename.to_s}/" end base_path << Rails.application.config.assets.prefix base_path << '/ckeditor/' %> CKEDITOR_BASEPATH = '<%= base_path %>'

saravananNV commented 11 years ago

can u plz explain why these two lines are used in your basepath.js.coffee.

base_path << Rails.application.config.assets.prefix base_path << '/ckeditor/'

Advance thanks....

tsechingho commented 11 years ago

please see #15 for the reason.

also see Work-with-asset-host

It should be basepath.js.erb in readme. it'a a typo, and i fixed it.