1
I have made a hack to use xoopseditor 1.10 package with news 1.55. //edited: is this the right section to post it? if not, apologies to the mods.
All you have to do is to locate the news_getWysiwygForm() function in modules/newsfolder/include/functions.php and edit the line for the editor you want (you can study each editor's constructor in order to see which arguments to use).
for example for FCKeditor alter
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;
to
case 'fck':
if(!$x22) {
if ( is_readable(XOOPS_ROOT_PATH . [color=CC3333]'/class/xoopseditor/FCKeditor/formfckeditor.php')) {
include_once(XOOPS_ROOT_PATH . '/class/xoopseditor/FCKeditor/formfckeditor.php');
//$editor = new XoopsFormFckeditor($caption, $name, $value);
$editor = new XoopsFormFckeditor($editor_configs);[/color]
}
} else {
$editor = new XoopsFormEditor($caption, 'fckeditor', $editor_configs);
}
break;
The problem was that the default file tried to pass wrong arguments to the editor constructor, so they editor was able to load, but could not be initialized with the proper values.
I have tested koivi editor, FCKeditor and tinyeditor, under XOOPS 2.0.16. Everything went smooth.
Hope someone found that usefull.