github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

gramos / easy-fckeditor

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 124
    • 16
  • Source
  • Commits
  • Network (16)
  • Issues (3)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Click here to lend your support to: easy-fckeditor and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Fork of Scott Rutherford's excellent fckeditor Rails plugin, with easy upload image plugin of Alfonso Martínez de Lizarrondo — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Spanish traslation 
rgo (author)
Wed Jun 24 15:27:18 -0700 2009
commit  9e9f30b6dd66fb7c1dab8794ef4135475f798ad3
tree    362ae82126c38ab4d336ac2dab8ab12a27ecbe2a
parent  4182e6f0c8a8ed5ce98af2a08896f75bcbf6c0e0
easy-fckeditor /
name age
history
message
file .gitignore Wed Sep 17 06:32:34 -0700 2008 added ingore [gramos]
file CHANGELOG Wed Sep 17 10:19:48 -0700 2008 release 0.8.1 updated version [gramos]
file LICENSE Wed Sep 17 06:30:09 -0700 2008 added LICENSE [gramos]
file README.textile Sat Apr 04 08:48:14 -0700 2009 update readme with rails test version [gramos]
file Rakefile Tue Sep 16 12:29:09 -0700 2008 added initals files [gramos]
directory app/ Sat Apr 04 08:30:09 -0700 2009 - Change request.relative_url_root.to_s (deprec... [gramos]
file init.rb Tue Sep 16 12:29:09 -0700 2008 added initals files [gramos]
file install.rb Wed Sep 17 07:28:38 -0700 2008 update new plugin name on sources [gramos]
directory lib/ Fri Feb 13 14:02:33 -0800 2009 request.relative_url_root removed in recent rails [mla]
directory public/ Wed Jun 24 15:27:18 -0700 2009 Spanish traslation [rgo]
directory tasks/ Wed Sep 17 10:15:25 -0700 2008 remove plugin files on uninstall tasks [gramos]
file uninstall.rb Wed Sep 17 07:28:38 -0700 2008 update new plugin name on sources [gramos]
README.textile

Easy FCKEditor Rails plugin
=======

Gastón Ramos

ramos.gaston [at] gmail [dot] com

http://gastonramos.wordpress.com/

Easy FCKEditor is a Rails Plugin thats generate a WYSIWYG text editor helper. This version is a fork of Scott Rutherford [great plugin](http://blog.caronsoftware.com/2007/11/16/fckeditor-plugin-0-4-2-released) with a [EasyUpload plugin](http://martinezdelizarrondo.com/easyupload/) inlcuded of Alfonso Martínez de Lizarrondo.

This plugin installs the FCKeditor editor into your rails app, along with some helpers to use in your views.

Features
====

  • WYSIWYG text editor helper.
  • 2 configurable versions of upload images module (easy and complete).
  • Easy link maker.

Versions
====

This plugin is tested with:

  • Rails 2.2 and 2.3
  • Ruby 1.8.6 Patchlevel 114
  • FCKeditor 2.6.3

Install
===

If you got this using:

ruby script/plugin install git://github.com/gramos/easy-fckeditor.git

Then the install should of copied all the appropriate files to their homes. If you download a tar then you can either do

rake fckeditor:install

from the root of your app, or the file will be installed the first time you startup after untaring the plugin.

Uninstall
=====

Then the install should run task:

rake fckeditor:uninstall

and all the installed files will be removed.

Files
=

Basically the whole of the FCKeditor suite is copied to: public/javascripts/fckeditor

There is a separate config file copied to: public/javascripts/fckcustom.js, that you can use to customize the install. This file is never overriden by upgrades or reinstalls

IMPORTANT
=====

If you are hosting your rails app in a subdirectory you need to open:

public/javascripts/fckcustom.js

and modify the FCKRelativePath = ’’; to suite your needs.

For example if I have an app at www.mydomain.com/app/

then the line should read:

FCKRelativePath = ‘/app’;

Usage
=

Basically include this in the page you wish to use the editor in

<%= javascript_include_tag :fckeditor %>

Then instead of the normal textarea helper from Rails use this one

<% = fckeditor_textarea(“object”, “field”, :toolbarSet => ‘Simple’, :width => ‘100%’, :height => ‘200px’) %>

and for use Easy toolbar with EasyUpload plugin

<% = fckeditor_textarea(“object”, “field”, :toolbarSet => ‘Easy’, :width => ‘100%’, :height => ‘200px’) %>

Thats it unless you are using AJAX

AJAX
====

To use a remote form you need to do something like this

<%= form_remote_tag :url => @options.merge(:controller => @scaffold_controller), :before => fckeditor_before_js(‘note’, ‘text’) %> <%= fckeditor_textarea( “note”, “text”, :ajax => true ) %> <%= end_form_tag %>

If you forget to put in the :before it won’t work, you can also use the fckeditor_form_remote_tag described below

Multiple Editors in a form
======

To create a form using multiple editors use the fckeditor_form_remote_tag helper and pass the :editors option. This takes an hash of model symbol keys with each having
an array as its value. The array should contain the list of fields that will have editors attached to them.

<%= fckeditor_form_remote_tag :url => @options.merge(:controller => @scaffold_controller), :editors => { :multinote => [‘text1’, ‘text2’] } %> <%= fckeditor_textarea( “multinote”, “text1”, :ajax => true ) %> <%= fckeditor_textarea( “multinote”, “text2”, :ajax => true ) %> <%= end_form_tag %>

There is also a fckeditor_remote_form_for version.

Spell Check
===

Basically ensure you have aspell installed and available in your path. If running on Windows then the expected install path is:

‘c:\program files\aspell\bin\aspell’

If you install elsewhere then you will need to update spell_check.rb in the plugin to mirror your path. Also make sure you have this line in your fckcustom.js file:

FCKConfig.SpellChecker = ‘SpellerPages’;

Contribute
==

There is a lighthouseapp account if you want to send a patch or report a bug

http://easy_fckeditor.lighthouseapp.com/projects/27883-easy-fckeditor/overview

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server