как разместить 2 ckeditor в 1й форме

U9
На сайте с 01.02.2010
Offline
16
335

как разместить 2 ckeditor в 1й форме

$main.="<tr valign=middle ><td>Комплектация<td>
<script type=\"text/javascript\">
window.onload = function()
{
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
var sBasePath ='./js/fckeditor/' ;

var oFCKeditor = new FCKeditor( 'descr' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Height = '500';
oFCKeditor.ReplaceTextarea() ;

}
</script>
<textarea class=\"inp\" rows=\"10\" cols=\"50\" wrap=\"virtual\" name=\"descr\">".htmlspecialchars(stripslashes($car['descr']))."</textarea>";

Такой код когда просто копирую его поменяв название textarea и поправив

var oFCKeditor2 = new FCKeditor( 'textareaName' ) ;

То 2й эдитор появляется а первый становится просто текст арией.

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий