This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
ru:how_to:editor_configuration_more_options [2013/10/18 07:40] Arkady [Language Direction] |
ru:how_to:editor_configuration_more_options [2013/10/18 07:46] Arkady [SpellCheck] |
||
---|---|---|---|
Line 169: | Line 169: | ||
Пока направление сверху вниз и снизу вверх не реализовано. ;=) | Пока направление сверху вниз и снизу вверх не реализовано. ;=) | ||
- | ===== Email Protection ===== | + | ===== Защита Email ===== |
+ | Иногда возникает необходимость размещения на странице сайта email-адреса. В этом случае их всегда необходимо защищать от обнаружения спамерскими грабберами и пауками.\\ | ||
+ | Для защиты адреса электронной почты возможна активация внутреннего модуля CKEditor, используя параметр //emailProtection : 'encode'//. | ||
- | sometimes it is necessary to add some email-adresses into a website. \\ And it is always necessary to protect these adresses from spam-harvesters. | + | Дополнительную информацию можно почерпнуть [[http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.emailProtection|здесь]]. |
- | You can enable some kind of email protection in the editor options (''emailProtection : 'encode''').\\ See more info here: [[http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.emailProtection]] | + | Добавьте в файл ''gsconfig.php'' в параметр GSEDITOROPTIONS настройку //emailProtection : 'encode'//. |
- | Add to gsconfig.php-editor-options: | + | <code> |
# WYSIWYG Editor Options | # WYSIWYG Editor Options | ||
define('GSEDITOROPTIONS',"skin : 'v2', | define('GSEDITOROPTIONS',"skin : 'v2', | ||
Line 189: | Line 191: | ||
emailProtection : 'encode' | emailProtection : 'encode' | ||
"); | "); | ||
- | now, whenever you create a mail-link in the editor, that mail-adress will be protected in the source-code: | + | </code> |
- | {{:how_to:ckeditor_mail_protection.jpg|}} | + | |
- | ===== SpellCheck ===== | + | |
- | CKEditor comes with built-in spellchecking feature, which is deactivated by default. | + | |
- | When activated, errors will be marked by a red line below the error. | + | |
- | When you position the cursor over that marked error, the context menu will pop up and show a list of suggestions | + | |
- | The Spellchecker-feature is named **SCAYT**, which means: **S**pell**C**heck**A**s**Y**ou**T**ype | + | Теперь, при размещении на странице email-адреса он будет защищен на странице: |
+ | |||
+ | {{:how_to:ckeditor_mail_protection.jpg|}} | ||
- | As there are a lot of options for the spell-checker, we will describe the basic configuration here. | + | ===== Проверка орфографии ===== |
- | If you want to use more of the options, find out in the documentation at ckeditor.net,http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.scayt_autoStartup | + | CKEditor поставляется со встроенным модулем проверки орфографии, который активирован по умолчанию. При активном модуле орфографические ошибки подчеркиваются красной линией. Если расположить курсор над подчеркнутой ошибкой – появится всплывающее контекстное меню со списком возможных исправлений. |
+ | Эта функциональность редактора сокращенно называется **SCAYT**, что означает **S**pell**C**heck**A**s**Y**ou**T**ype (проверка орфографии при вводе). | ||
+ | Для модуля проверки орфографии существует большое количество настроек, в этой статье будут описаны только основные. Полный список настроек можно найти в документации [[http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.scayt_autoStartup|CKEditor]]. | ||
==== Necessary modifications: ==== | ==== Necessary modifications: ==== | ||