1
I use Oledrion with CKEditor.
There is a simple change to do :
oledrion/xoops_version.php /**
* Editor to use
*/
$cpto++;
$modversion['config'][$cpto]['name'] = 'bl_form_options';
$modversion['config'][$cpto]['title'] = "_MI_OLEDRION_FORM_OPTIONS";
$modversion['config'][$cpto]['description'] = '_MI_OLEDRION_FORM_OPTIONS_DESC';
$modversion['config'][$cpto]['formtype'] = 'select';
$modversion['config'][$cpto]['valuetype'] = 'text';
$modversion['config'][$cpto]['options'] = array(
_MI_OLEDRION_FORM_DHTML=>'dhtmltextarea',
_MI_OLEDRION_FORM_COMPACT=>'textarea',
_MI_OLEDRION_FORM_HTMLAREA=>'htmlarea',
_MI_OLEDRION_FORM_KOIVI=>'koivi',
_MI_OLEDRION_FORM_FCK=>'fckeditor',
_MI_OLEDRION_FORM_TINYEDITOR=>'tinyeditor',
// Addition
_MI_OLEDRION_FORM_CK=>'CKEditor',
'tinymce' => 'tinymce'
);
$modversion['config'][$cpto]['default'] = 'dhtmltextarea';
oledrion/class/utils.php case 'ckeditor':
if ( is_readable(XOOPS_ROOT_PATH . '/class/ckeditor/ckeditor.php')) {
require_once(XOOPS_ROOT_PATH . '/class/ckeditor/ckeditor.php');
$editor = new XoopsFormFckeditor($caption, $name, $value);
}
break;
Troubleshooting : html code is rendered with white spaces on front page.Example :
Quote:
The standard chunk of Lorem Ipsum
used since the 1500s is reproduced below for those interested.
Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum"
by Cicero are also reproduced in their exact original form,
accompanied by English versions from the 1914 translation by H. Rackham.
If I compress html code before submit form (Source window), it is displayed fine.
I have looked for a solution with CKEditor faq and forums. It seems that this matter is related to Xoops (at least Oledrion module, because if I compare with xNews module, there is a checkbox bellow the submit form to compress html code).
I don't know where to look for now
Thanks for help !!