Permalink
Browse files

Configure ckeditor base path in ckeditor/init.js

  • Loading branch information...
1 parent 4bad5fe commit e5a4cec8fff853a537f4b3e1d60ed6faaa53beab @galetahub galetahub committed Feb 23, 2012
View
@@ -5,7 +5,7 @@ the results users have when publishing it. It brings to the web common editing f
== Features
-* Rails 3.1 integration
+* Rails 3.2 integration
* Files browser
* HTML5 files uploader
* Hooks for formtastic and simple_form forms generators
@@ -14,9 +14,9 @@ the results users have when publishing it. It brings to the web common editing f
== Install
-Rails 3.1:
+Rails 3.2:
- gem "ckeditor", "3.7.0.rc2"
+ gem "ckeditor", "3.7.0.rc3"
Rails <= 3.0:
@@ -64,9 +64,14 @@ Autoload ckeditor models folder (application.rb):
== Usage
-Include ckeditor javascripts rails 3.1:
+Include ckeditor javascripts rails 3.2:
+
+ //= require ckeditor/init
+
+or
+
+ <%= javascript_include_tag "ckeditor/init" %>
- //= require ckeditor/ckeditor
Rails <= 3.0:
@@ -0,0 +1,8 @@
+//= require_self
+//= require ckeditor/ckeditor
+
+(function() {
+ if (typeof window['CKEDITOR_BASEPATH'] === "undefined" || window['CKEDITOR_BASEPATH'] === null) {
+ window['CKEDITOR_BASEPATH'] = "/assets/ckeditor/";
+ }
+}).call(this);
@@ -8,4 +8,4 @@
//= require jquery_ujs
//= require_tree .
-//= require ckeditor/ckeditor
+//= require ckeditor/init

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit e5a4cec

Please sign in to comment.