divvun / ckeditor-divvungc

Divvun Grammar Checker plugin for CKEditor

Home Page:http://gtweb.uit.no/gc/ck/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

divvun-webdemo

Description

CKEditor plugin for the Divvun grammar checker, with a simple webdemo.

Usage

If you’re serving /var/www/html with apache/nginx/whathaveyou, you can do e.g.

sudo mkdir /var/www/html/ck-demo
sudo cp -r lib index.html ./*.css locales ck-plugins /var/www/html/ck-demo

to have the demo running under location/ck-demo.

If you want to use the plugin in your own ck-editor, it should be enough to put the ck-plugins folder on your server, and

CKEDITOR.plugins.addExternal('divvungc', window.location.href + '/ck-plugins/divvungc/', 'plugin.js');
CKEDITOR.replace( 'ckeditor', {
  extraPlugins: 'divvungc'
});

(possibly prepending a subdir to the /ck-plugins/ path if you put it in a subdir)

Currently the server wants username/password. The plugin reads it from window.localStorage["userpass"]. See src/app.js’s readLoginFormStoring on how to set it in localStorage.

[0/3]

  • [ ] Strip zero width characters
  • [ ] Maybe use jquip instead of jquery
  • [ ] Remove all the login/username stuff …

About

Divvun Grammar Checker plugin for CKEditor

http://gtweb.uit.no/gc/ck/


Languages

Language:JavaScript 90.7%Language:Fluent 7.0%Language:CSS 1.2%Language:HTML 1.0%Language:Makefile 0.2%