ext-spellcheck.js

981 views
Skip to first unread message

Sven Bluege

unread,
Mar 8, 2013, 2:57:51 PM3/8/13
to ace-d...@googlegroups.com
Hi, 

I just noticed a files called "ext-spellcheck.js" here: https://github.com/ajaxorg/ace-builds/blob/master/src/ext-spellcheck.js

Does anybody can tell me what this file is good for and how I can use it? So far I was unable to find some useful information about it.

Thanks,
Sven

Harutyun Amirjanyan

unread,
Mar 8, 2013, 4:03:59 PM3/8/13
to ace-d...@googlegroups.com
Hi

seems i should disable automatic detection of files to include in
build, since unfinished experiments end up in there often:(

See https://github.com/ajaxorg/ace/tree/spellcheck for finished version.
Including that file creates spellcheck option on the editor
https://github.com/ajaxorg/ace/blob/spellcheck/lib/ace/ext/spellcheck.js#L44
and after editor.setOption("spellcheck", true)
spelling suggestions will be shown in the browser context menu, but
since suggestions without highlighting are not useful, and typo.js can
provide suggestions as well, it's overall usefulness is very
questionable,
i'll remove that file from the next build.

Thanks,
Harutyun

Sven Bluege

unread,
Mar 9, 2013, 8:10:57 AM3/9/13
to ace-d...@googlegroups.com
I was about asking how to active it but I found it. This is a very interesting experiment at least for me. typo.js did not work from my german content very well. In addition parsing a 3MB file every time a page loads takes too long. I try to do spell checking server side using google or php.  So I've got the highlighting but I was in need to show possible corrections. At least this spellcheck.js is a very good starting point and works out of the box in the way I need it.

Thanks,
Sven

Sawyer Hollenshead

unread,
Nov 22, 2013, 1:29:01 PM11/22/13
to ace-d...@googlegroups.com
Is this thread still relevant? I'm trying to add spellcheck capability to my Ace markdown editor and have included ext-spellcheck.js after ace.js. I've also included editor.setOption("spellcheck", true) but spellchecking capability isn't activating and I'm seeing a "misspelled option "spellcheck" message in the console.

Harutyun Amirjanyan

unread,
Nov 22, 2013, 3:03:57 PM11/22/13
to ace-d...@googlegroups.com
it should work with the version currently on master (it is enabled in
kitchen-sink demo by default)

editor.setOption("spellcheck", true) is available only after
ext-spellcheck.js is loaded
Reply all
Reply to author
Forward
0 new messages