1
macklein
two xoops editor instances?
  • 2009/8/26 15:13

  • macklein

  • Just popping in

  • Posts: 21

  • Since: 2006/6/29


Hello people, I'm working with a XoopsThemeForm. I need two rich text fields. I'm trying with two fckeditor instances:

$editor1 = new XoopsFormEditor('Caption', "varname", $editor_configs);
$form->addElement($editor1);

$editor2 = new XoopsFormEditor('Caption2', "varname2", $editor_configs2);
$form->addElement($editor2);

the $editor_configs array is like this:
$editor_configs2=array();
$editor_configs2['rows'] = 35;
$editor_configs2['cols'] = 60;
$editor_configs2['width'] = '100%';
$editor_configs2['height'] = '400px';
$editor_configs2['editor'] = 'fckeditor';
$editor_configs2['name'] ='varname';
$editor_configs2['value'] = $value;

the problem is: the second editor takes the value of editor1 .

If use only one editor, the values are taken right, but when i use two editors, one takes the value from the other one....

any ideas how to make this work?