Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 803 Bytes

README.textile

File metadata and controls

24 lines (15 loc) · 803 Bytes

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