Вход
Главное меню







FCKeditor в новостях
#1
Just popping in
Just popping in


Как активировать FCKeditor в новостях? В настройках есть выбор FCKeditor, но не работает.
установлен - XOOPS 2.0.18
- news 1.61
- FCKeditor 2.4.3

Posted on: 2008/7/26 14:48
 Top  Print  Reply Quote


Re: FCKeditor в новостях
#2
Just popping in
Just popping in


Сам и нашел ответ :

Открыть /news/include/functions.php
Найти код:
Quote:
case 'fck':
if(!$x22) {
if ( is_readable(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php')) {
include_once(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php');
$editor = new XoopsFormFckeditor($caption, $name, $value);
}
} else {
$editor = new XoopsFormEditor($caption, 'fckeditor', $editor_configs);
}
break;



и заменить кодом:
Quote:
case 'fck':
if(!$x22) {
if ( is_readable(XOOPS_ROOT_PATH . '/class/xoopseditor/fckeditor/formfckeditor.php')) {
include_once(XOOPS_ROOT_PATH . '/class/xoopseditor/fckeditor/formfckeditor.php');
$editor = new XoopsFormFckeditor(array('caption'=> $caption, 'name'=>$name, 'value'=>$value, 'width'=>'100%', 'height'=>'400px'));
}
} else {
$editor = new XoopsFormEditor($caption, 'fckeditor', $editor_configs);
}
break;

Posted on: 2008/7/26 16:30
 Top  Print  Reply Quote








Powered by XOOPS © 2001-2023 The XOOPS Project