Skip to content

madpilot/tinymce_spellcheck

Repository files navigation

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

About

Interface between raspell and TinyMCEtinymce_spellcheck

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages