2010-05-31 52 views
3

我已经安装了CKEditor 3.0,它工作的很好,但我想禁用自动拼写检查器 我注意到当我在编辑器中编写一些单词时,它会管理连接到“svc.spellchecker.net” 以使拼写检查如何禁用ckeditor 3自动拼写检查器?

你知道任何方式来停止该功能吗?

在此先感谢

回答

0

The documentation建议您设置disableNativeSpellChecker为true CKEDITOR.config。

+3

该选项的默认值为true,并且禁用*浏览器的*拼写检查工具 - 而不是CKEditor的scayt,它正在生成连接。如果你禁用'scayt',你应该设置'disableNativeSpellChecker'为** false **。 – josh3736 2010-06-20 08:23:01

11

更好禁用config.js

config.removePlugins = '即时拼写检查' 插件的选项;

1

只是设置scayt_autoStartup = false;

window.addEvent('domready',function(){ 

var CKEditor = $jq('textarea.ckEditor'); 

// CKEditor 
CKEditor.ckeditor({ 
    //* 
    disableNativeSpellChecker:true, 
    scayt_autoStartup:false, 
    toolbar:[ 
     ['Bold','Italic','Underline','Strike'], 
     ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], 
     ['Undo','Redo'], .... 
3

这是我用过的方式:

CKEDITOR.editorConfig = function (config) { 

// Disable spellchecker 
config.scayt_autoStartup = false; 

// Other configurations 
config.htmlEncodeOutput = true; 
config.enterMode = CKEDITOR.ENTER_BR; 
config.shiftEnterMode = CKEDITOR.ENTER_BR; 

config.toolbar = 
    [ 
     ['Bold', 'Italic', '-', 'Link', 'Unlink'] 
    ]; 
config.removePlugins = 'elementspath,save,font, maximize, resize, scayt'; 
config.filebrowserBrowseUrl = '/boDocumentos'; 
config.filebrowserUploadUrl = '/boDocumentos/upload'; 
config.filebrowserImageWindowWidth = '640'; 
config.filebrowserImageWindowHeight = '720'; 

};