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?

Login

Who's Online

398 user(s) are online (295 user(s) are browsing Support Forums)


Members: 0


Guests: 398


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits