[英]scayt button doesn't show up nor scayt functions work
几天以来,我一直在尝试修复ckeditor-scayt问题,但在互联网上什么都找不到。 求求你了
这是我的config.js文件---工具栏定义:
config.toolbar_Reduite = [
{ name: 'Fichiers', items: ['Source']},
{ name: 'FaireDefaire', items: ['Undo','Redo','-', 'Scayt', 'SpellChecker']},
{ name: 'Polices', items:
['Bold','Italic','Underline','Subscript','Superscript','RemoveFormat']},
{ name: 'CopieColle', items:
['Cut','Copy','Paste','PasteText','PasteFromWord']},
{ name: 'ListeDec', items: ['NumberedList','BulletedList','-',
'Outdent','Indent','Blockquote']},
{ name: 'Justifie', items: ['JustifyLeft','JustifyCenter',
'JustifyRight','JustifyBlock','Link','Unlink']},
{ name: 'Tableaux', items: ['Table','HorizontalRule','TextColor','BGColor']}
];
还有我的特定textareat ckeditor替换
var CKcontenu = CKEDITOR.replace( 'contenu', { toolbar : 'Reduite',
filebrowserImageBrowseUrl : 'outils/ckeditor_ChoisirImage.php',
filebrowserImageUploadUrl : 'outils/ckeditor_RecevoirImage.php',
extraPlugins : 'linkayt,scayt',
disableNativeSpellChecker : false,
scayt_srcUrl : 'http://spellcheck_host/spellcheck/lf/scayt3/ckscayt/ckscayt.js',
scayt_maxSuggestions : 4,
scayt_sLang : 'fr_CA',
scayt_userDictionaryName : '../nanospell/server/dictionaries',
scayt_customDictionaryIds : 'fr.dic,en.dic,es.dic',
scayt_moreSuggestions : 'off',
scayt_contextCommands : 'add|ignoreall',
scayt_uiTabs : '1,0,1',
scayt_contextMenuItemsOrder :'moresuggest|control|suggest',
scayt_minWordLength : 4,
scayt_elementsToIgnore : 'del,pre',
scayt_disableOptionsStorage : ['lang', 'ignore-all-caps-words', 'ignore-words-with-mixed-cases'],
scayt_ignoreWordsWithNumbers : true,
scayt_ignoreDomainNames : true,
scayt_ignoreWordsWithMixedCases : true,
scayt_ignoreAllCapsWords : true,
scayt_inlineModeImmediateMarkup : true,
scayt_multiLanguageMode : true,
scayt_autoStartup : true,
language_list : ['en:English', 'fr:Français', 'es:Espaañol', ],
scayt_multiLanguageStyles : {'en': 'background-image: none; color: blue', 'es': 'background-image: none; color: orange', 'fr': 'background-image: none; color: red' },
} );
但是仍然没有显示Scayt按钮。 另外,SpellChecker按钮不提供scayt选项,如您在所附图像中看到的那样:
我该如何解决?
ckeditor版本:4.5.11 scayt版本:不确定,但上周下载,README说:«该插件将“键入时进行拼写检查(SCAYT)”升级到CKEditor 4+。 »
谢谢。
当我取消所有配置时,它运行良好。
因此,我该如何配置和调整巡视车:主要是默认语言,语言列表?
这(下面)不起作用:
scayt_sLang : 'fr_CA',
language_list : ['en:English', 'fr:Français', 'es:Espaañol', ],
scayt_multiLanguageStyles : {'en': 'background-image: none; color: blue', 'es': 'background-image: none; color: orange', 'fr': 'background-image: none; color: red' },
谢谢
您可以从使用正确的CKEditor和SCAYT配置的简单演示开始,并根据需要逐步添加所有其他选项。
CKEDITOR.config.toolbar = [{
name: 'editing',
items: ['Scayt', 'Cut', 'Copy', 'Paste', 'Bold', 'Italic', 'Underline']
}];
CKEDITOR.replace('container', {
scayt_autoStartup: true,
grayt_autoStartup: true
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.