351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
|
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
|
-
+
|
if (!oSpellChecker) {
postMessage(createResponse("setDictionary", "# Error. SpellChecker not loaded.", dInfo, true));
return;
}
//console.log("setDictionary", sDictionary);
switch (sDictionary) {
case "main":
oSpellChecker.setMainDictionary(oDict);
oSpellChecker.setMainDictionary(oDict, dInfo["sExtPath"]+"/grammalecte/graphspell/_dictionaries");
break;
case "community":
oSpellChecker.setCommunityDictionary(oDict);
break;
case "personal":
oSpellChecker.setPersonalDictionary(oDict);
break;
|