Giter Site home page Giter Site logo

jspellchecker's Introduction

jspellchecker

Java spellcheck service for tinymce 4.2.5 - forked from http://sourceforge.net/p/jspellchecker/code/HEAD/tree/branches/v1/

Requirements:

  • App servers compatible with Java 8 (see notes below)

Download:

Tinymce spellchecker configuration:

HTTP post example:

tinymce.init({
    selector: "textarea",
    plugins: "spellchecker",
    spellchecker_languages : "+English=en-us",
    spellchecker_rpc_url: "http://localhost:8080/jspellchecker/jazzy-spellchecker",
    toolbar: "spellchecker"
})

AJAX example:

tinymce.init({
    selector: "textarea",
    plugins: "spellchecker",
    spellchecker_languages : "+English=en-us",
    spellchecker_wordchar_pattern: /[^\s,\.]+/g,
    spellchecker_callback: function(method, text, success, failure) {
        tinymce.util.JSONRequest.sendRPC({
            url: "http://localhost:8080/jspellchecker-servlet/jazzy-spellchecker",
            method: "spellcheck",
            params: {
                lang: this.getLanguage(),
                words: text.match(this.getWordCharPattern())
            },
            success: function(result) {
                success(result);
            },
            error: function(error, xhr) {
                failure("Spellcheck error:" + xhr.status);
            }
        });
    },
    toolbar: "spellchecker"
})

Changes summary:

  • 03/09/2015 - forked from Andrey's repo (http://sourceforge.net/p/jspellchecker/code/HEAD/tree/branches/v1/)
  • 03/09/2015 - added spellcheck method as required for tinymce 4.2.5 (needs to mimic JSON as example above using AJAX wrapper)
  • 04/09/2015 - published war to download and added requirements
  • 10/09/2015 - added support for application/x-www-form-urlencoded content-type (tinymce 4.2.x HTTP post)

Application servers tested:

  • Apache tomcat 7

About the dictionaries:

  • Dictionaries aren't included. You'll need to configure them. I recommend to read Chorniy's blog mentioned below.

Notes:

  • In case your app server is incompatible you can build the deployable war file via gradle. It depends on current dependencies and it haven't been analyzed and tested. Basically you need to clone this repository form git, then execute 'gradle war' using the desired JDK version.

Special thanks to Andrey Chorniy:

jspellchecker's People

Contributors

abidinotto avatar andreymoser avatar

Watchers

James Cloos avatar Muhammad Fuad Hasan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.