Interface between raspell and TinyMCEtinymce_spellcheck
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.document
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
README.textile
Rakefile
VERSION
tinymce_spellcheck.gemspec

README.textile

TinymceSpellcheck

Acts as an interface to the TinyMCE spell checker plugin. At the moment, it only supports ASpell (via the raspell gem) but it has the ability to abstract engines away, so it can be extended in the future.

Install

% gem install tinymce_spellcheck

.h3 Via Bundler

gem ‘tinymce_spellcheck’

Example

def spellcheck
  data = ActiveSupport::JSON.decode(request.raw_post)
  args = data['params'].to_a.first
  spellcheck = TinymceSpellcheck::TinymceSpellcheck.new({}, :raspell)
  result = spellcheck.send(data['method'].underscore, *args)
  render :json => { :id => data['id'], :result => result, :error => nil }.to_json
end

Copyright © 2009-2012 MadPilot Productions, released under the MIT license