tsechingho / ckeditor-rails

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

Fix for assets pre-compile error for ckeditor-rails. #72

Open ardeearam opened 8 years ago

ardeearam commented 8 years ago

Error details:

On bundle exec rake assets:precompile, this error occurs: ExecJS::ProgramError: Unexpected token: operator (<) (line: 1, col: 0, pos: 0)

As per https://github.com/galetahub/ckeditor/issues/551, the problem is that the JS parser is not able to parse HTML snippet. So the solution is to remove the HTML tags, and rename the files from .html to .js