[英]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.