hi all,
i need to include two (and even more...) instances of the FCKeditor on one page.
i allready get two editors, even the text values are right, unfortunatly, the second instance included cannot be altered, seems like it cannot get the focus...
Does anyone knows how to fix that?!
here goes the code...
//PHP
<form action="edittext.php" method="post">
<input type="submit" value="Eintragen" name="submit">
</form>
/// END CODE
greetings, dablake
i need to include two (and even more...) instances of the FCKeditor on one page.
i allready get two editors, even the text values are right, unfortunatly, the second instance included cannot be altered, seems like it cannot get the focus...
Does anyone knows how to fix that?!
here goes the code...
//PHP
<form action="edittext.php" method="post">
<input type="hidden" name="site" value="<?=$text[0]['site']?>">
<input type="hidden" name="subsite" value="<?=$text[0]['subsite']?>">
<? $i=0; foreach ($text as $key => $val) // Array $text contains the different language versiosn of the site // this means that there will be a fckEditor include for each language found (at least german & english) { $i++; // FCKeditor $oFCKeditor[$i] = new FCKeditor($val['id']); $oFCKeditor[$i]->BasePath = '/FCKeditor/'; $oFCKeditor[$i]->Value = $val['text']; $oFCKeditor[$i]->Create(); /* OLD VERSION (BEFORE FCKEDITOR) echo "<p>Text:(".$val['sprache'].")</p> <textarea name='".$val['id']."' cols='100' rows='20'>".$val['text']."</textarea>"; */ } ?>
<input type="submit" value="Eintragen" name="submit">
</form>
/// END CODE
greetings, dablake