This is a plugin for WoodWing ContentStation 10 that provides spelling and grammar checking with Divvun’s proofing tools (see http://divvun.no/ and https://github.com/divvun/divvun-gramcheck).
Currently, we just do “batch” spelling. That is, after writing a text, you can open the plugin and let it check the text and show spelling suggestions in a separate window, you may then pick suggestions and apply them back to the original document.
There is no on-the-fly spelling, only batch. The WoodWing API doesn’t yet provide a way to underline and put events on strings in their editor. When such an API arrives, we should be able to do spelling on-the-fly.
To install the frontend, put the contents of the release
folder into
a subdirectory named divvungc
of the WoodWing config/plugins
folder on the server. If this folder is e.g.
/Applications/MAMP/htdocs/Enterprise/config/plugins/divvungc/
then you can copy it from your machine with
rsync -avh release/ woodwingserver:/Applications/MAMP/htdocs/Enterprise/config/plugins/divvungc/
# The trailing / here is important
Then under the plugins
object in
/Applications/MAMP/htdocs/Enterprise/contentstation/config.js
, add
the path to the bundle under printEditor
and contentStation
, e.g.
plugins: {
digitalEditor: [
'../config/plugins/divvungc/bundle.js'
],
printEditor: [
'../config/plugins/divvungc/bundle.js'
]
}
if you have no other plugins there already.
URL to the backend is currently hardcoded in the JavaScript. If you need to change the URL/port/subdir, you can edit release/bundle.js and change the lines
this.hostname = "10.35.10.13";
this.port = "2737";
this.protocol = window.location.protocol;
this.subdir = "";
If you wish to run the backend from your own server:
docker run --name apy -p2737:2737 -it unhammer/divvun:woodwing-apy
Use docker/build to rebuild images. The one above is built for arm64,
e.g. M1 macs; the script will tag anything you build from now on with
the arch, e.g. docker.io/unhammer/divvun:woodwing-apy-x86_64
.