<script type="text/javascript">
function UseFCKeditor()
{
var oTextarea = document.getElementsByName('FCKeditor1')[0] ;
if( oTextarea.style.display != 'none' )
{
// Use FCKeditor for edit
var oFCKeditor;
oFCKeditor = new FCKeditor('FCKeditor1') ;
oFCKeditor.BasePath = '/fckeditor/' ;
oFCKeditor.Value = oTextarea.innerHTML ;
oFCKeditor.ReplaceTextarea();
}
else
{
// Back to TextArea for edit
var oTextarea1 = document.getElementsByName('frame_FCKeditor1')[0] ;
oTextarea1.removeNode(true);
// For here, I want any change make in FCKeditor back to Textarea.
// Can there anybody tell me how to get the value of FCKeditor object???
//
// alert(oTextarea.innerHTML);
oTextarea.style.display = 'block' ;
}
}
</script>
<input type=checkbox onClick="UseFCKeditor()" name=11>Use FCKeditor to Edit
<textarea id="FCKeditor1" name="FCKeditor1" style="WIDTH: 100%; HEIGHT: 200px">
Use 's dfk kdk kfkda kdka k kkdfk kk's
</textarea>
function UseFCKeditor()
{
var oTextarea = document.getElementsByName('FCKeditor1')[0] ;
if( oTextarea.style.display != 'none' )
{
// Use FCKeditor for edit
var oFCKeditor;
oFCKeditor = new FCKeditor('FCKeditor1') ;
oFCKeditor.BasePath = '/fckeditor/' ;
oFCKeditor.Value = oTextarea.innerHTML ;
oFCKeditor.ReplaceTextarea();
}
else
{
// Back to TextArea for edit
var oTextarea1 = document.getElementsByName('frame_FCKeditor1')[0] ;
oTextarea1.removeNode(true);
// For here, I want any change make in FCKeditor back to Textarea.
// Can there anybody tell me how to get the value of FCKeditor object???
//
// alert(oTextarea.innerHTML);
oTextarea.style.display = 'block' ;
}
}
</script>
<input type=checkbox onClick="UseFCKeditor()" name=11>Use FCKeditor to Edit
<textarea id="FCKeditor1" name="FCKeditor1" style="WIDTH: 100%; HEIGHT: 200px">
Use 's dfk kdk kfkda kdka k kkdfk kk's
</textarea>