Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 43 lines (26 sloc) 1.315 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
h2. ActiveScaffoldCKeditor

Copyright (c) 2010 Atalargo

MIT License use as you wish, see MIT-LICENSE file

Version 0.2

Provide CKeditor for text area content in ActiveScaffold Form

h3. Installing:

You must have ActiveScaffold and Rails-ckeditor plugin installed and configured

(you must use this fork of rails-ckeditor : http://github.com/atalargo/rails-ckeditor to have the possibility to have many editor opened of different instance of same model at the same time -like in subform editors of association)


* ./script/plugin install git://github.com/atalargo/active_scaffold_ckeditor.git

 To use it, first add CKeditor javascript in your layout like indicated in Rails-ckeditor README.
 After in a controller where you active ActiveScaffold, active CKeditor for a form_ui column

 active_scaffold :page_contents do |config|
columns[:content].form_ui = :ckeditor
 end

 you can pass option for the CKEditor composent with column options

 active_scaffold :page_contents do |config|
columns[:content].form_ui = :ckeditor
        config.columns[:content].options = {:width => "100%"}
 end

 For the moment the options managed by this form are :
 * width : string
 * height : string
 * class : string
 * ajax : boolean
 * language : string
 * resize_enabled : boolean


Something went wrong with that request. Please try again.