This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
ru:how_to:editor_configuration_more_options [2013/10/18 07:46] Arkady [SpellCheck] |
ru:how_to:editor_configuration_more_options [2013/10/18 07:54] (current) Arkady [Necessary modifications:] |
||
---|---|---|---|
Line 203: | Line 203: | ||
Для модуля проверки орфографии существует большое количество настроек, в этой статье будут описаны только основные. Полный список настроек можно найти в документации [[http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.scayt_autoStartup|CKEditor]]. | Для модуля проверки орфографии существует большое количество настроек, в этой статье будут описаны только основные. Полный список настроек можно найти в документации [[http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.scayt_autoStartup|CKEditor]]. | ||
- | ==== Necessary modifications: ==== | + | ==== Необходимые изменения: ==== |
- | - Enable the feature (''scayt_autoStartup:true'') | + | - Включаем проверку орфографии (''scayt_autoStartup:true'') |
- | - Define the language for the spellchecker (''scayt_sLang:'de_DE''')\\ The default language is en_US, so you should define the language when you need another language. \\ Possible values for the languages are: //en_US, en_GB, pt_BR, da_DK, nl_NL, en_CA, fi_FI, fr_FR, fr_CA, de_DE, el_GR, it_IT, nb_NO, pt_PT, es_ES, sv_SE//. | + | - Определяем проверяемый язык (''scayt_sLang:'de_DE''') \\Язык по умолчанию - //en_US//. \\Возможные значения: //en_US, en_GB, pt_BR, da_DK, nl_NL, en_CA, fi_FI, fr_FR, fr_CA, de_DE, el_GR, it_IT, nb_NO, pt_PT, es_ES, sv_SE//. |
- | - add the spellchecker-symbols to the toolbar\\ There are 2 symbols: the symbol ''Spellchecker'' opens the text in a dialogue window, allows to choose the language to check with and to correct the text, the second symbol, ''Scayt'' opens a pop-up-dialogue to activate / deactivate the spellchecker and to set some options. | + | - Добавляем кнопки-ссылки модуля проверки орфографии на панель инструментов редактора.\\ |
- | + | Их всего две: ''Spellchecker'' загружает текст в диалогове окно, позволяет выбирать язык для проверки и проводить корректировку текста. ''Scayt'' открывает диалоговое окно для включения/отключения проверки орфографии и установки некоторых опций. | |
- | So add //SCAYT-options// to editor-options and //'Scayt'// to the toolbar in gsconfig.php | + | |
+ | Добавляем //SCAYT-опции// к настройкам редактора и строку '''Scayt''' к панели инструментов в файле ''gsconfig.php'' | ||
+ | <code> | ||
# WYSIWYG Editor Options | # WYSIWYG Editor Options | ||
define('GSEDITOROPTIONS',"scayt_autoStartup:true, scayt_sLang:'de_DE'"); | define('GSEDITOROPTIONS',"scayt_autoStartup:true, scayt_sLang:'de_DE'"); | ||
Line 219: | Line 220: | ||
'Redo','Find','Replace','-','SelectAll','RemoveFormat','SpellChecker','Scayt'],'/', | 'Redo','Find','Replace','-','SelectAll','RemoveFormat','SpellChecker','Scayt'],'/', | ||
"); | "); | ||
- | + | </code> | |
- | **Attention:** | + | |
- | There is a bug in CKEditor SpellChecker's plugin which you should be aware of: | + | **Внимание:** |
- | if spellchecker is enabled and **the cursor is placed in a list** (whether unordered or ordered list), do not switch to SourceCode mode! | + | В плагине CKEditor SpellChecker есть ошибка, о существовании которой надо знать.\\ |
- | When switching back your list will be "destroyed" because the spellchecker plugin adds superfluous list-elements to the source code | + | Если проверка орфографии включена и **курсор находится в списке** (неупорядоченном или нумерованном – не имеет значения), не переключайтесь в режим //Source//! При переключении назад в режим WYSIWYG ваш список будет поврежден, так как модуль проверки орфографии добавит к нему лишние элементы.\\ |
+ | Существование этой ошибки проверено для последней на момент написания статьи версии CKEditor (3.6.2), в этой версии она так же присутствует. Это – не ошибка GetSimple, поэтому придется ждать, пока разработчики CK Editor ее исправят. | ||
- | It's tested with the newest CKEditor version (3.6.2), the bug is still there | ||
- | this is no GetSimple bug, so we have to wait until that bug is fixed in CKEditor | ||
- | ---- |